Is there a simple way to suspend a form repaint? I have several things I
need to do with a form, and I want to suspend repainting it until the last
item is done. Thanks.

--
Dave Veeneman
Chicago

Re: Suspend Form Repaint? by Stoitcho

Stoitcho
Thu Feb 26 08:50:55 CST 2004

Hi Dave,
There was such a question couple of days ago posted by mevar.
The subject was "Disabling Forms Redrawing". You can check Google for the
whole thread.

Anyways, here is my advise I gave back then:

" There is not managed solution that works in all of the cases.
Some controls like ListBox, ListView, TreeView and ComboBox have their own
way to stop updating the control. This can be done using the method pair
BeginUpdate/EndUpdate.

However there is no method that works with all of the controls.

I said there is no managed solution because you can send WM_SETREDRAW
message to the controls window and in this way stop/resume painting the
control."


--
B\rgds
100
"Dave Veeneman" <davidv@nospam.com> wrote in message
news:elMX3CG$DHA.3712@tk2msftngp13.phx.gbl...
> Is there a simple way to suspend a form repaint? I have several things I
> need to do with a form, and I want to suspend repainting it until the last
> item is done. Thanks.
>
> --
> Dave Veeneman
> Chicago
>
>



Re: Suspend Form Repaint? by hirf-spam-me-here

hirf-spam-me-here
Thu Feb 26 11:10:00 CST 2004

* "Dave Veeneman" <davidv@nospam.com> scripsit:
> Is there a simple way to suspend a form repaint? I have several things I
> need to do with a form, and I want to suspend repainting it until the last
> item is done.

'SendMessage' + 'WM_SETREDRAW':

<http://groups.google.de/groups?selm=urUPqzpCDHA.1548%40TK2MSFTNGP12.phx.gbl>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet/>