Results 1 to 3 of 3

Thread: Halt code execution when window open

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96

    Halt code execution when window open

    I need to halt my code when a certain Form is open....

    When you show a MsgBox the code execution halts.
    I want this to happen with a certain form aswell...when it's closed the code execution should continue.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    Form that opens the other form
    [Highlight=VB]
    Private Sub cmdOpenForm_Click()
    MsgBox "Opening...."

    Form2.Show vbModal, Me

    MsgBox "Closed"
    End Sub
    [Highlight=VB]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96
    Thanks a lot! Worked fine

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