Results 1 to 4 of 4

Thread: How do I get a form to wait until another form has done its "thing"?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143

    Post

    Hi.

    ok ok ok I know this question probably has been anvered before but belive me I sreached this iste for it (I might have overlooked it)

    ok lets continue to the question.

    How do I get a form in my program to wait until the other form has done its "thing"
    or wait till the form has unloaded?


    Thanks in advance.


    -Lumin

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    frmNewForm.show 1

    that will open up the new form and suspend all other actions until you unload it. Is this what you mean?

  3. #3
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    Show the Form that's going to "Do its Thing", Modaly, that way Processing within the Calling Form won't continue until the Modal Form is Unloaded or Hidden, ie.
    Code:
    Private Sub Command1_Click()
        'Do Some Stuff
        'Let the Other Form "Do its Thing"
        Form2.Show vbModal
        'Do the Rest of the Stuff Here After the
        'Other Form is Hidden/Unloaded
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    aarony@redwingsoftware.com
    ajyoung@pressenter.com


  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143

    Post

    woha that was a fast replay.

    Anyway thanks it was just what I was looking for

    -Lumin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width