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