Closing a form from other form
I am opening a form from other form, both need to be displayed at once, which I have been able to do. But what I need to be able is to close both forms when using a push button from only one of them.
I have tried the following code in the pushbutton:
Dim frmMain as new frmMain
frmMain.close
me.close
But this opens a new frmMain, I have also tried:
Dim frmMain a frmMain
frmMain.close
me.close
but this generates an error.
Thanks
Not what I was looking for
I do not want to close out the application.
I have a splash form, from the splash form I open another, lets call is Main for here. Then from the Main form when you press the Help button another form will open. What I then need is the Main form and help form to both be displayed, when you close the help form I need both the help and main form to close leaving only the splash form displayed.
Thanks