Results 1 to 2 of 2

Thread: Temporarily Halting Code Execution in A Form?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    28

    Question

    If you place a message box somewhere in your code within a form (call it FormA), the code, in essence, stops running right at that point until such time that the user responds to the message box. Then the code just picks up right at that point and continues execution. Is there any way for the code within a form (FormA) to load/show another form (FormB) and then stop executing right at that point until such time that the FormB form has completed its functions. In essence, this would be acting just like a message box with the code in FormA suspending until such time that FormB is "done".

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    You can show the form using the vbModal constant. This makes the new form Modal, and works like a message box.

    Code:
    Form2.Show vbModal
    Iain, thats with an i by the way!

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