0473 Posted March 21, 2005 Posted March 21, 2005 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 Quote
0473 Posted March 21, 2005 Author Posted March 21, 2005 P.S when i in VB6 ..i will use unload me... why i can't >.<? Quote
0473 Posted March 21, 2005 Author Posted March 21, 2005 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 Quote
Administrators PlausiblyDamp Posted March 21, 2005 Administrators Posted March 21, 2005 http://www.xtremedotnettalk.com/showthread.php?t=83092 may be worth a read if you are new to using forms under .Net. Also if you wish to clos ethe startup form in your application while the app remains up and running then clicky may be worth a look. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.