Dear All,
I am developing a application where I have 1 parent from (windowstate of Parent from is set to Maximized) and 2 child forms. In my Parent form I have a menustrip with following code to activate child -
Public Class FormParent
Public NewMDIChildForm1 As New Form1()
Public NewMDIChildForm2 As New Form2()
Private Sub AddChlid1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddChild1ToolStripMenuItem.Click
NewMDIChildForm1.MdiParent = Me
NewMDIChildForm1.WindowState = FormWindowState.Maximized
NewMDIChildForm1.Show()
End Sub
Private Sub AddChlid2ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddChlid2ToolStripMenuItem.Click
NewMDIChildForm2.MdiParent = Me
NewMDIChildForm2.WindowState = FormWindowState.Maximized
NewMDIChildForm2.Show()
End Sub
End Class
I have buttons on each child form with
me.hide
now when I do following steps
Open Child Form1 - Open Child Form2 - Hide Child Form2 - Hide Child Form1 - Open Child Form1
my Child form1 doesnot appears in Maximized state
Please Help.
Regards,
Pankaj