Hello
I have two forms (form1,form2) I set the properties of form1 to: window state > maximized , ismdicontainer > true .I then put the code into the form1_load subroutine [CODE]Dim NewMDIChild As New Form2()I also put the following into form2_load subroutineCode:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim NewMDIChild As New Form2() 'Set the Parent Form of the Child window. NewMDIChild.MdiParent = Me 'Display the new form. MsgBox("parent") NewMDIChild.Show() End SubThis in fact works. What I need to do is make form2 the parent and form1 the child. I have changed the forms properties so that form 2 is the parent and form1 is the child.Code:Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MsgBox("child") End Sub End Class
What I want is when the program runs is for form2 to automatically show the message " child " followed by form1 showing the message "parent"
It seems simple to do, but I have had no luck. Thanks in advance!