prevent from refresh

D

Dmitriy Lapshin [C# / .NET MVP]

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.
 
K

Konrad

But using .NET commands is it possible?

Dmitriy Lapshin said:
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 said:
Hi

How to prevent Windows Form
from being refreshed?

Thanks
Konrad
 
D

Dmitriy Lapshin [C# / .NET MVP]

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 said:
But using .NET commands is it possible?

Dmitriy Lapshin said:
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 said:
Hi

How to prevent Windows Form
from being refreshed?

Thanks
Konrad
 
H

Herfried K. Wagner [MVP]

* "Konrad said:
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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top