how to close a pasword form after showing a second form

rafaguilarsol

New member
Joined
Sep 21, 2006
Messages
3
Programming Experience
1-3
Hi, guys. I´m new in .net so I have a lot of questions. Please be patient with me.

I haven´t read all the posts but I guess this was already asked. Sorry.

The thing is I´ve created a log-in form and after the validation I show another form and hide this one, but if I close the second form, the program doesn´t end. It keeps running because the log-in form wasn´t closed.

What can I do? Please help me.

Thx for everything
 
ShutDown Mode

well you should change the tactics hehe
instead of hidding form you will close the log-in form:
VB.NET:
Dim nForm as Form = New mainForm
nForm.Show()
Me.Close() 'log-in form will be closed moreover

but before that open Solution Explorer and right-click the Project and select "Properties" or from the mainmenu "Project" select the item "projName Properties". Now just set up the shutdown mode just same as on the picture below. Voila!

Regards :)
 

Attachments

  • close.png
    close.png
    9.2 KB · Views: 40
kulrom, according to his account:
Primary Platform: .NET 1.1 (VS 2003)

he can't do all that, he's gotta do it the hard way:
start you program from the main form, in the load event
declare the login form and show it as a dialog (.ShowDialog() )

there ya go
 
reply

Hi, JuggaloBrotha, you were right I have to do it the hard way.

Thank you very much for your help and thnx again Kulrom.

I appreciate you guys took the time to help me.

God bless
 
Back
Top