G
Guest
I have an issue with a Child Form of a MDI Child staying contained within the
Master Form.
My first Form is called mdiMaster, which opens the mainMenu form with the
following code:
Dim MainMenu As New MainMenu
MainMenu.MdiParent = Me
MainMenu.Show()
Then a button click event of the mainMenu opens an application form with the
following code:
Dim applicantion As New applicantion
applicantion.MdiParent = Me.MdiParent
applicantion.Show()
The problem occurs when the application form tries to open another form, I
have the following code:
Dim searchForms As New SearchForms
searchForms.MdiParent = Me.MdiParent
searchForms.Show()
The problem is that searchForms does not stay contained in the mdiMaster
form. I tried the following syntax:
searchForms.MdiParent = Me.MdiParent.MdiParent
which caused a runtime error and hung the application.
Also, I have the mdiMaster IsMdiContainer form property set to true.
Any suggestions? Thanks.
Master Form.
My first Form is called mdiMaster, which opens the mainMenu form with the
following code:
Dim MainMenu As New MainMenu
MainMenu.MdiParent = Me
MainMenu.Show()
Then a button click event of the mainMenu opens an application form with the
following code:
Dim applicantion As New applicantion
applicantion.MdiParent = Me.MdiParent
applicantion.Show()
The problem occurs when the application form tries to open another form, I
have the following code:
Dim searchForms As New SearchForms
searchForms.MdiParent = Me.MdiParent
searchForms.Show()
The problem is that searchForms does not stay contained in the mdiMaster
form. I tried the following syntax:
searchForms.MdiParent = Me.MdiParent.MdiParent
which caused a runtime error and hung the application.
Also, I have the mdiMaster IsMdiContainer form property set to true.
Any suggestions? Thanks.