Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional Closing of MDI Form
Message
From
30/11/2001 10:44:57
 
 
To
29/11/2001 12:54:37
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00587580
Message ID:
00588010
Views:
19
What if you did something like this:

In the Main MDI Form or a module create a public sub like this:

Public Sub UnloadForm(ByRef MyForm As Form)
Unload MyForm
End Sub

Then from the child form you are trying to unload do this:

Private Sub Form_Unload(Cancel As Integer)
MDIForm1.UnloadForm Form1
or
subMain.UnloadForm Form1
End Sub
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform