Flicker Problem

  • Thread starter Thread starter Michael C
  • Start date Start date
M

Michael C

Hi all,

I'm designing a C# app (VS.NET 2003) with an interface similar in design to
Outlook. I get a lot of 'flicker' when I resize the main form. Anyone have
any quick tips on how to reduce flicker when resizing a form?

Thanks in advance,
Michael C.
 
Currently the form is designed with 2 panels, one containing a treeview, the
other a label.

thanks again,
'visual' mike c.
 
I think this might help you a bit...

SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);
// Write it down after InitializeComponent() in

// your form's constructor

Regards,
 
Thanks for the help Angel, but it's still flickering somewhat. I used your
SetStyle statement and also tried some variations like double buffering, but
the two panels I have in the form are are still showing big black areas
around the edges after I re-size the form, but before they are re-drawn.
Any other ideas? I think the panels are causing the problem, but I don't
know how to get around that...

Thanks,
Michael C.
 
I tried it without the Panels also... argh it's not working :( The panels
actually have a paint event... I'll keep looking.

Thanks,
Michael C.
 
Back
Top