CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    How to check from Form1 if Form2 is loaded

    When I press Command1 on Form1 It will check if Form2 is loaded and return true if it's loaded and false if it's not loaded....What function can I use to check for form2???


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How to check from Form1 if Form2 is loaded

    Dim frm As Form
    For Each frm In VB.Forms
    If frm.Name = "form2" Then
    MsgBox "loaded"
    End If
    Next frm



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

Featured