Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb_dotnet thread: How do you check if a form is loaded already in vb7 ?


Message #1 by "Gabriel Brienza" <vbnetuk@y...> on Thu, 31 Jan 2002 14:54:00
I am building and mdiApplication and with a vertical bar.
And if you call a form that is already loaded it shouldnt load it.

How do you check if a form is loaded already in vb7 ?

in vb6 I used this function


Public function UnloadAllChildForms
    Dim Form As Form
    
    UnloadAllChildForms = True
    
    For Each Form In Forms
        If Trim(UCase(Form.Name)) <> Trim(UCase(ParentForm)) Then
            If Form.MDIChild Then
                Unload Form
                
             
             End If
        End If
    Next

End Function




  Return to Index