I am working in an mdi project and need to know if a form which is a non mdi child form is currently open. Is there any easy way of doing this?
Thanks, Matt
Just a thought
Scotty : "Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
This will tell you if the form is loaded:
---------------------------------------------------
Dim f As Form
For Each f In Forms
If f.Name = "Form2" Then MsgBox "Yes master, " & f.Name & " at your service."
Next f
---------------------------------------------------
note that loaded is not the same as visible.
If you:
Form2.show
Form2.hide
the form will not be visible, but it will be loaded.
If you want to check if the form is visible use
If f.visible then ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.