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
 
I also would like to know how to unload a form in VB.net.

Steven\\
 
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

end without form unload 5
Splash screens / loading & unloading forms 3
Unload Me 0
Simple question on forms 4
Unloading Form 4
Detect Unload Mode? 4
Unload ME? 2
form Unload 6

Back
Top