471,603 Members | 1,419 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

Pinvoke - LockWindowUpdate

I am using the LockWindowUpdate API to lock my form while updating and
then Unlock when I am done. It was pretty simple to make the call to
lock the form with the form handle but how do I Unlock it?

I can't seem to get it.

Thanks.

Jan 9 '06 #1
2 2868
Gene,

You would call LockWindowUpdate and pass IntPtr.Zero as the parameter
(equivalent to null).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Gene Vital" <no********@msnew.com> wrote in message
news:OO**************@TK2MSFTNGP14.phx.gbl...
I am using the LockWindowUpdate API to lock my form while updating and
then Unlock when I am done. It was pretty simple to make the call to
lock the form with the form handle but how do I Unlock it?

I can't seem to get it.

Thanks.

Jan 9 '06 #2
Nicholas Paldino [.NET/C# MVP] wrote:
Gene,

You would call LockWindowUpdate and pass IntPtr.Zero as the parameter
(equivalent to null).

Hope this helps.

That did it. Thanks...
Jan 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Brett Robichaud | last post: by
5 posts views Thread by vertigo | last post: by
2 posts views Thread by Richard Thornley | last post: by
5 posts views Thread by _iycrd | last post: by
3 posts views Thread by Paul Remblance | last post: by
8 posts views Thread by Rajesh Soni | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.