How to avoid form flicker

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
 
H

Herfried K. Wagner [MVP]

* "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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top