Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...