Results 1 to 2 of 2

Thread: Check if a form is loaded ??

  1. #1

    Thread Starter
    Addicted Member trasher's Avatar
    Join Date
    Jun 2001
    Location
    Quebec city, Qc, Canada
    Posts
    255

    Check if a form is loaded ??

    Easy Question :

    I want to know if there'S a simple way to know when your program is running, if a specific form is loaded (just hidden by another form) ??

    thanks for help

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    You can do something like this

    Dim MyForm As Form
    For Each MyForm In Forms
    If MyForm.Name="thisform" Then
    ..it's loaded
    End If
    Next

    Or, if you are just picking on one particular form you could set a Public variable on the form's Load Event, and unset it on the form's Unload event. Then you can just check the public variable.
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

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