I am new to Telerik thing and working on an application using Telerik WinForm controls. I am adding user controls dynamically into a panel based on options selected in the main tree. One such user control constitutes a detailed form having lots of fields.
below is the way I am displaying the user control in a panel:
loEntityForm =
new EntityForm(_OwnerID); // User control to be added dynamically
pnlResourceRight.Controls.Clear(); // Clearing existing user controls if any
pnlResourceRight.Controls.Add(loEntityForm);
loEntityForm.Dock =
DockStyle.Fill;
Now this loEntityForm flickers a lot before being properly rendered.
I have used already used one possible slolution in the contructor
i.e
InitializeComponent();
SetStyle(
ControlStyles.UserPaint, true);
SetStyle(
ControlStyles.AllPaintingInWmPaint, true);
SetStyle(
ControlStyles.DoubleBuffer, true);
SetStyle(
ControlStyles.ResizeRedraw);
but it doesn't solve my problem. Please suggest.