Home All Groups Group Topic Archive Search About

Mdi Child form visible property ?

Author
21 Mar 2006 5:15 PM
Mark
If I set my mdi child form visible=false,  I can not set it back to visible
or do a show on it. Can someone tell me what  I'm doing wrong.

Thanks Mark

Author
21 Mar 2006 5:42 PM
Bob Butler
"Mark" <M***@advancemicrosystems.com> wrote in message
news:%23neicsQTGHA.5656@TK2MSFTNGP11.phx.gbl
> If I set my mdi child form visible=false,  I can not set it back to
> visible or do a show on it. Can someone tell me what  I'm doing wrong.

I started a new project, added an mdi parent, set form1 to be an mdi child
and put this in form1:
Private Sub Form_Click()
Me.Visible = False
End Sub

and this in mdiform1:
Private Sub MDIForm_Click()
Form1.Visible = True
End Sub

I can make form1 appear and disappear without a problem.  My guess would be
that you are somehow not referencing the same child form but since you
didn't provide any code or explain whether it just didn't do anything or
gave an error there's not much else to suggest.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."