G
Guest
Hi all,
I am running into an issue trying to close a form from another form.
I have a main form called MainForm.
A child form is opened in the MainForm as follows:
Dim Form2 As New Form2
Form2.MdiParent = Me
Form2.Show()
Now from Form2 I am opening another form as follows:
Dim Form3 As New Form3
Form3.MdiParent = Me.MdiParent
Form3.Show()
Form3 has 1 button that when pressed I want it to close Form2.
Form3 has another button when pressed I want it to return the focus to form2.
Don't know why I am having problems with this, doesn't seem like a
compicated thing to do. Any ideas?
Thanks in advance.
I am running into an issue trying to close a form from another form.
I have a main form called MainForm.
A child form is opened in the MainForm as follows:
Dim Form2 As New Form2
Form2.MdiParent = Me
Form2.Show()
Now from Form2 I am opening another form as follows:
Dim Form3 As New Form3
Form3.MdiParent = Me.MdiParent
Form3.Show()
Form3 has 1 button that when pressed I want it to close Form2.
Form3 has another button when pressed I want it to return the focus to form2.
Don't know why I am having problems with this, doesn't seem like a
compicated thing to do. Any ideas?
Thanks in advance.