|
-
Mar 28th, 2004, 10:08 PM
#1
Thread Starter
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|