Hi

How to prevent Windows Form
from being refreshed?

Thanks
Konrad

Re: prevent from refresh by Dmitriy

Dmitriy
Mon Dec 15 04:56:58 CST 2003

Hi,

There's LockWindowUpdate API call that could do the job. You can also try
sending the WM_SETREDRAW message to the form window to prevent it from being
redrawn.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Konrad" <konrad007@poczta.onet.pl> wrote in message
news:brk3cl$6a1$1@atlantis.news.tpi.pl...
> Hi
>
> How to prevent Windows Form
> from being refreshed?
>
> Thanks
> Konrad
>
>


Re: prevent from refresh by Konrad

Konrad
Mon Dec 15 05:06:50 CST 2003

But using .NET commands is it possible?

"Dmitriy Lapshin [C# / .NET MVP]" <x-code@no-spam-please.hotpop.com> wrote
in message news:OlnnqovwDHA.1760@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> There's LockWindowUpdate API call that could do the job. You can also try
> sending the WM_SETREDRAW message to the form window to prevent it from
being
> redrawn.
>
> --
> Dmitriy Lapshin [C# / .NET MVP]
> X-Unity Test Studio
> http://x-unity.miik.com.ua/teststudio.aspx
> Bring the power of unit testing to VS .NET IDE
>
> "Konrad" <konrad007@poczta.onet.pl> wrote in message
> news:brk3cl$6a1$1@atlantis.news.tpi.pl...
> > Hi
> >
> > How to prevent Windows Form
> > from being refreshed?
> >
> > Thanks
> > Konrad
> >
> >
>



Re: prevent from refresh by Dmitriy

Dmitriy
Mon Dec 15 05:40:00 CST 2003

I'm afraid not. Some .NET controls expose methods like BeginUpdate() and
EndUpdate(), but there are only a few such controls. To the best of my
knowledge, forms themselves do not expose such methods.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Konrad" <konrad007@poczta.onet.pl> wrote in message
news:brk4nk$nm8$1@nemesis.news.tpi.pl...
> But using .NET commands is it possible?
>
> "Dmitriy Lapshin [C# / .NET MVP]" <x-code@no-spam-please.hotpop.com> wrote
> in message news:OlnnqovwDHA.1760@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > There's LockWindowUpdate API call that could do the job. You can also
try
> > sending the WM_SETREDRAW message to the form window to prevent it from
> being
> > redrawn.
> >
> > --
> > Dmitriy Lapshin [C# / .NET MVP]
> > X-Unity Test Studio
> > http://x-unity.miik.com.ua/teststudio.aspx
> > Bring the power of unit testing to VS .NET IDE
> >
> > "Konrad" <konrad007@poczta.onet.pl> wrote in message
> > news:brk3cl$6a1$1@atlantis.news.tpi.pl...
> > > Hi
> > >
> > > How to prevent Windows Form
> > > from being refreshed?
> > >
> > > Thanks
> > > Konrad
> > >
> > >
> >
>
>


Re: prevent from refresh by hirf-spam-me-here

hirf-spam-me-here
Mon Dec 15 06:03:08 CST 2003

* "Konrad" <konrad007@poczta.onet.pl> scripsit:
> How to prevent Windows Form
> from being refreshed?

Some controls provide 'BeginUpdate' and 'EndUpdate' methods.

If you want to stop /layouting/, use 'SuspendLayout' and 'ResumeLayout'.

If nothing works, use p/invoke on 'LockWindowUpdate' or 'SendMessage' +
'WM_SETREDRAW'.

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