C# : Redraw a Whole Control on Resize

added by gsanthoshbe
3/26/2010 4:44:25 AM

0 Kicks, 168 Views

When custom controls or Windows Forms controls like Panel are resized, only their newly exposed portions are redrawn. However, this behaviour sometimes does not provide the desired results (see fig. 1 below). This example shows how to ensure redrawing of the whole control after resizing by setting the control's Resi zeRedraw property.