By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,611 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,611 IT Pros & Developers. It's quick & easy.

how to swap forms

P: 1
i want to know how we can swap two forms in vb????????
Mar 21 '07 #1
Share this Question
Share on Google+
2 Replies


markmcgookin
Expert 100+
P: 648
i want to know how we can swap two forms in vb????????
This will open up a new form called frmMyForm (replace that with your forms name)

Expand|Select|Wrap|Line Numbers
  1. Dim newform As New frmMyForm
  2. newForm.Show()
  3.  
if you want to close the current form, THEN open the new one it would be:

Expand|Select|Wrap|Line Numbers
  1. Dim newform As New frmMyForm
  2. Me.Close()
  3. Me.Dispose(True)
  4. newForm.Show()
  5.  
Hope that helps

Mark
Mar 21 '07 #2

vijaydiwakar
100+
P: 579
i want to know how we can swap two forms in vb????????
pls explain the Q in detail
Mar 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.