Hi

I have a winform with a panel on it. I am doing visual changes to the panel.
Is there a way to suspend screen painting during these changes? If the whole
form needs its display suspended then that would work for me too. How can I
do this?

Thanks

Regards

Re: Suspending screen updates by Armin

Armin
Thu May 08 16:14:40 CDT 2008

"John" <info@nospam.infovis.co.uk> schrieb
> I have a winform with a panel on it. I am doing visual changes to
> the panel. Is there a way to suspend screen painting during these
> changes? If the whole form needs its display suspended then that
> would work for me too. How can I do this?

You'll get the best solution if you tell us why you want to do this. Do
you do a lot of visual changes and do you want to speed it up? How long
does it currently take? What kind of changes?


Armin


Re: Suspending screen updates by John

John
Thu May 08 17:21:58 CDT 2008

Hi Armin

I am adding several controls to the panel and would like to display them all
at once when the update is complete.

Many thanks for your time.

Regards

"Armin Zingler" <az.nospam@freenet.de> wrote in message
news:edPnvXVsIHA.524@TK2MSFTNGP05.phx.gbl...
> "John" <info@nospam.infovis.co.uk> schrieb
>> I have a winform with a panel on it. I am doing visual changes to
>> the panel. Is there a way to suspend screen painting during these
>> changes? If the whole form needs its display suspended then that
>> would work for me too. How can I do this?
>
> You'll get the best solution if you tell us why you want to do this. Do
> you do a lot of visual changes and do you want to speed it up? How long
> does it currently take? What kind of changes?
>
>
> Armin
>



Re: Suspending screen updates by Armin

Armin
Thu May 08 18:27:47 CDT 2008

"John" <info@nospam.infovis.co.uk> schrieb
> Hi Armin
>
> I am adding several controls to the panel and would like to display
> them all at once when the update is complete.

Can you hide the whole panel before and show it afterwards? Maybe show
an additional "please wait..." label (or similar) during the operation.

> > How long does it currently take?

? (just to receive an impression)


AZ

Re: Suspending screen updates by Cor

Cor
Fri May 09 03:11:39 CDT 2008

John,

Those controls where this makes sense have properties for this.

Have a look at the listview by instance.

http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.beginupdate.aspx

Cor


"John" <info@nospam.infovis.co.uk> schreef in bericht
news:eGLbN7UsIHA.484@TK2MSFTNGP04.phx.gbl...
> Hi
>
> I have a winform with a panel on it. I am doing visual changes to the
> panel. Is there a way to suspend screen painting during these changes? If
> the whole form needs its display suspended then that would work for me
> too. How can I do this?
>
> Thanks
>
> Regards
>
>