Newbie Form Question

0473

Newcomer
Joined
Mar 21, 2005
Messages
9
i had two forms ....i set form1 in the startup_object

when i press the button in form 1 , it show form2 .

however , i close form1 , all the application will be end ...

how can i prevent that @@?

thx all >.<......i can't find the the FAQ
 
um...haha

i had solved this question..but ..i have another question now ...

my program is an login program ...

login form > login > sucess > form2 > logout > show login form again

but ..when show back form1 ...error

Private Sub btnOut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOut.Click

Me.Close()
objLogin.Show() <=== ERROR

End sub

An unhandled exception of type 'System.ObjectDisposedException' occurred in system.windows.forms.dll
 
Back
Top