|
-
Mar 22nd, 2002, 06:36 AM
#1
Thread Starter
Lively Member
Unloading a Form
I'm looking for the equivalent of the unload.form2 command in VB.NET and what event that needs to be placed in.
In VB6:
Click button1 on form 1 event: form2.show:form1.hide
Click button1 on form 2 event: form1.show:form2.hide
and in my form1.unload I would have Unload.Form2:Unload.Me
Now I've got the showing/hiding of the forms OK with VB.NET, I use (in a module):
Public MainForm As New Form1()
Public ProgressForm As New Form2()
I can show/hide with mainform.hide/progressform.show e.t.c. all works fine but I know the progressform (form2) is not unloading when I quite the app from form1.
I've looked at the 'closing' and 'closed' events of form1 and added a progressform.dispose but no good as when I quit the app the VB.NET IDE has not stopped.
Anyone?
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
|