Question on form hiding and stuff
Hey! I'm trying to make an if statement that deals with if a certain form is hidden. Lets say I have two forms and I hide one of them (hide()). How can I say something like "If form1 is hidden then.... do this...." or "If form2 is hidden then.... do this"? any ideas? Should I just use a variable to keep track of that or is there a way to tell?
John
Re: Question on form hiding and stuff
The Form class has a Visible property that indicates exactly what the name suggests.
Re: Question on form hiding and stuff
Yes the visible property seems same as the show,hide :).
VB Code:
Dim f2 As New Form2
If f2.Visible = False Then
MsgBox("hidden")
End If