I have a custom control that has a rectangle drawn at the bottom of the
control. Nothing fancy, just a rectangle with a color fill. The
control has the ability to be resized ( Collapsed - Expanded). Each
time the control is resized, the rectangle needs to be redrawn in its
proper location. The probem is that the resize event fires and
finishes before the Paint event can redraw the rectangle, giving me a
very nasty flicker.
I have these styles set:
SetStyle(ControlStyles.ResizeRedraw, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.ContainerControl, true);
I've tried both true and false for ResizeRedraw.
I would think there is a fairly simple answer for this, but its lost on
me at this point.
Any help would be greatly appreciated.
Andy