471,056 Members | 1,627 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,056 software developers and data experts.

Vb.net Form events

129 100+
Hai guys I am new .net any one can help me with this problem

I want to unload a form when i click a button and show another form ontime.

i performed this code but the two were closed ontime.

my code is

Expand|Select|Wrap|Line Numbers
  1.  
  2. EXIT_CLICK()
  3. dim frm as new form2
  4.  
  5. me.close()
  6. frm.show
  7. endsub
  8.  
Thanx in advance
Feb 4 '07 #1
4 1701
shweta123
692 Expert 512MB
Hi,

hide the form instead in the form_Closing
e.g

me.close
form2.show

Public sub Form_Closing(ByVal e As System.EventArgs)
e.Cancel =True
me.hide
End Sub

hope so this what you want
Shweta
Feb 5 '07 #2
dwadish
129 100+
I want close it from the memory can i?

i know the hide method
Feb 5 '07 #3
shweta123
692 Expert 512MB
Hi,
I am not sure but as you are creating the instance of 2nd form from the first form, as soon as you close the 1st , 2nd also gets closed.
That is why I suggested hide.

Shweta
Feb 5 '07 #4
dwadish
129 100+
Thanx for the help !
Feb 6 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Richard Cornford | last post: by
reply views Thread by jphelan | last post: by
10 posts views Thread by Drakier Dominaeus | last post: by
5 posts views Thread by [Yosi] | last post: by
18 posts views Thread by Colin McGuire | last post: by
2 posts views Thread by thomasp | last post: by
7 posts views Thread by Miro | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.