I have written a custom Panel class which calls a method to layout its controls in a certain way on 3 events - Resize, ControlAdded, ControlRemoved. It then calls Invalidate to invoke a repaint.
The problem is that I get a lot of screen flicker when using the component - my form also has a StatusBar at the bottom and this flickers too.
Ive used the double buffer code as described elsewhere - is there anything else I can do?
I can post more of the code if it would help..
Cheers
mafro
The problem is that I get a lot of screen flicker when using the component - my form also has a StatusBar at the bottom and this flickers too.
Ive used the double buffer code as described elsewhere - is there anything else I can do?
VB.NET:
Me.SetStyle(ControlStyles.DoubleBuffer, True)
Me.SetStyle(ControlStyles.AllPaintingInWmPaint, False)
Me.SetStyle(ControlStyles.ResizeRedraw, True)
Me.SetStyle(ControlStyles.UserPaint, True)
Cheers
mafro