Click to See Complete Forum and Search --> : form


ecannizzo
February 5th, 2001, 02:38 PM
How can I tell if a form is loaded?

Thanks!
Erica

dfwade
February 5th, 2001, 02:45 PM
if not formname is nothing then 'it's loaded somewhere

end if

ecannizzo
February 5th, 2001, 02:53 PM
When your using an MDI form does it automatically load all its forms? That statement that you gave me won't work...

Bruno
February 5th, 2001, 04:06 PM
public Function FormIsLoaded(frmName as string) as Boolean
Dim i as Integer

for i = 0 to Forms.Count - 1
If Forms(i).Name = frmName then
FormIsLoaded = true
Exit Function
End If
next
End Function