Hello!
I have this project with many forms, opening, hiding, unloading, etc...
I want to add a cautionary process that watch if no form is showing, so it makes the main form show.
How do I do it?
Something like:
or
(Note that if I ask the value of SomeForm.Visible and the form is not loaded, it will load the form. I need to do it without loading them)
I have this project with many forms, opening, hiding, unloading, etc...
I want to add a cautionary process that watch if no form is showing, so it makes the main form show.
How do I do it?
Something like:
Code:
If NoFormIsShowing Then MainForm.Show
Code:
CountShowing = 0
For Each f in Forms
if f.IsShowing then CountShowing = CountShowing + 1
next
If CountShowing = 0 Then MainForm.Show