Reputation: 21
How can I make my mdi child form always in maximize state. For example, I have a parent form and 2 children. when i open my 1st child forms it open in maximize state...when i open my 2nd child form while the 1st child form is open it opens in maximize state too (it will overlap the other)..my problem is when the 2 child forms are open at the same time and when i close one of them, the other form who left open turn into its normal...how can i maintain it in maximize state?
Upvotes: 2
Views: 3825
Reputation: 2758
If I understand this question correctly, if you want to make sure a from is maximized when you close a different form, you could use the FormClosed event like:
Private Sub Form1_FormClosed(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.FormClosed
Form2.WindowState = FormWindowState.Maximized
End Sub
HTH
Upvotes: 1