How to avoid form flicker

  • Thread starter Thread starter Yogesh Patange
  • Start date Start date
Y

Yogesh Patange

Hi,

In my application in the Windows form I am loading a user control
dynamically with the DockStyle = Fill, Whenever I remove one user control
and load the another one there is a flicker on the screen.
How can I avoid it and make the controls transition smooth.

Thanks in advance,
Yogesh
 
* "Yogesh Patange said:
In my application in the Windows form I am loading a user control
dynamically with the DockStyle = Fill, Whenever I remove one user control
and load the another one there is a flicker on the screen.
How can I avoid it and make the controls transition smooth.

Have a look at the form's 'SuspendLayout' and 'ResumeLayout' methods.
 
Back
Top