"Jon Vaughan" <jo**********@hotmail.com> schrieb:
I have a form that im using to draw buttons onto, a click on the buttons
will cause the text on the buttons to change and some buttons will be
hidden , so im looking to stop the redraw on the form until I have finished
making these changes, to reduce the flicker. Can someone tell me how to do
it ?
If you want to prevent docked and anchored controls from resizing
immediately, check out the form's or container's 'SuspendLayout' and
'ResumeLayout' methods. Some controls provide 'BeginUpdate' and 'EndUpdate'
methods to disable updating. You can use the method described in the
article referenced below to disable redrawing of forms and controls:
Preventing controls from redrawing
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=disableredrawing&lang=en>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>