Unloading a form.

  • Thread starter Thread starter Joshua Kendall
  • Start date Start date
J

Joshua Kendall

I just want to know how to perform an unload event in
dotnet. I don't need the password help because I found it
at another site. Just tell me how to do an unload event.

an eritated,
Joshua Kendall.
 
To an eritated Joshua Kendall.

It's not good <Form.> to have your mouth open, so please <Close> it.

A slightly cryptic,
Fergus
 
Hi Steven,

Lol, ok, the challenge is for you too. ;-)

Do you have Help with your VS, and does it provide an Index?
Because ...
with or without the help of that Index,

The <answer> is in my previous post.

Regards,
Fergus
 
Using the close command doesn't work for me.

Eritated with an "I"!
Joshua Kendall
 
* "Joshua Kendall said:
But It closed my whole app when I used it.

It seems you used it on your main form and your application will loose
its message loop.

Add this code into a new code file and set the project's startup object
(in the project properties) to 'Sub Main'.

\\\
Public Class Main
Public Sub Main()
Call (New Form1()).Show()
Application.Run()
End Sub
End Class
///

In a button on your 'Form1':

\\\
(New Form2()).Show()
Me.Close()
///

You can exit the application by calling 'Application.ExitThread'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
 
Back
Top