Results 1 to 4 of 4

Thread: Pausing a form to wait for another form to be closed?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195
    Anyone know how to do this?

  2. #2
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Sydney Australia
    Posts
    804
    Try

    opening the form as vbmodal from the first form.

    Code:
    form2.Show vbmodal

  3. #3
    New Member
    Join Date
    Mar 2001
    Posts
    12

    hey

    hey,

    When you open the form you want to pause, open it like so:

    Code:
       Load Form2
       Form2.show vbmodal, me
    VbModal tells VB that the Form2 must be closed before Form1 gets focus back. Me is a reference to Form1

    hope that helps

    Nick

  4. #4
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406
    If the forms are "related", that is one loads/shows the other you can do this:

    FormA shows the next form:

    formB.show vbmodal, me

    Form B will not appear and form A will be "paused" until Form B is unloaded.

    Look in on-line help for better descriptions of vbModal...

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