You can minimize the flicker using interop to suspend the painting
(which is different than suspending the Layout events). Here is a FAQ
link on this.

http://www.syncfusion.com/faq/windowsforms/Search/637.aspx

=======================
Clay Burch
Syncfusion, Inc.

Re: How to avoid flicker when adding controls to a panel? by Simon

Simon
Tue Apr 24 09:47:32 CDT 2007

Hi all,

I'm currently using this method to try and reduce the problem, however
there does seem to be a serious flaw:-

During the period that painting is suspended, any mouse clicks travel
through the form and are picked up by whatever is behind the form. So if
adding your control to the is anything less than instantaneous, the
user can click on the form and have the app disappear depending on whats
behind it.

Does anyone know of a way to stop this?

Thanks all

Simon

ClayB wrote:
> You can minimize the flicker using interop to suspend the painting
> (which is different than suspending the Layout events). Here is a FAQ
> link on this.
>
> http://www.syncfusion.com/faq/windowsforms/Search/637.aspx
>
> =======================
> Clay Burch
> Syncfusion, Inc.
>