VB.Net how to wait for a different form to close before continuing on.

Posted by Sean P on Stack Overflow See other posts from Stack Overflow or by Sean P
Published on 2010-01-25T16:47:09Z Indexed on 2010/04/18 9:33 UTC
Read the original article Hit count: 386

Filed under:
|
|
|

I have a little log in screen that pops up if a user selects a certain item on my main form. How do I get my code to stop executing til my log in form closes?

This is what I am doing so far. Basically i want o execute the code after MyLogin closes.

    BMSSplash.MyLogin.Show()

    If isLoggedIn Then
        BMSSplash.MyBuddy.Show()
        Cursor.Current = Cursors.WaitCursor
    End If

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about .NET