Pinvoke - LockWindowUpdate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gene Vital

    #1

    Pinvoke - LockWindowUpdate

    I am using the LockWindowUpdat e 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.

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Pinvoke - LockWindowUpdat e

    Gene,

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

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Gene Vital" <nothankyou@msn ew.com> wrote in message
    news:OO6YdUWFGH A.3000@TK2MSFTN GP14.phx.gbl...[color=blue]
    >I am using the LockWindowUpdat e 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.
    >[/color]


    Comment

    • Gene Vital

      #3
      Re: Pinvoke - LockWindowUpdat e

      Nicholas Paldino [.NET/C# MVP] wrote:[color=blue]
      > Gene,
      >
      > You would call LockWindowUpdat e and pass IntPtr.Zero as the parameter
      > (equivalent to null).
      >
      > Hope this helps.
      >
      >[/color]
      That did it. Thanks...

      Comment

      Working...