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

Loading one form from another

P: 3
Hi All,

I am creating one application with 2 forms. Step1 is the first form and Step2 is the second one. I can load the second form from the first one. How do I create an instance of the first form and call it from the second form? I dont want to load the first form afresh, instead, I want to load the last instance of the first form (from the second form, may be using a Back button) where user would already have filled in some data and navigated to the second form.
I can create an instance of the first form as
Expand|Select|Wrap|Line Numbers
  1. DIM F1 As Step1
But I dont seem to have been able to use
Expand|Select|Wrap|Line Numbers
  1. F1.show()
from the second form.
Hope my requirement is clear to you.
I am sorry, I am quite new to VB.NET. Please help.
Jan 30 '13 #1
Share this Question
Share on Google+
1 Reply


IronRazer
P: 83
Hey bhasky12345,
When you are done with the Step1 form and want to go to the Step2 form you can do this :
Expand|Select|Wrap|Line Numbers
  1. Step1.Hide
  2. Step2.show
Now if you want to go back to Step1 you can use :
Expand|Select|Wrap|Line Numbers
  1. Step2.Hide
  2. Step1.Show
The forms should keep all settings and/or info until you close the forms. I hope this helps.
Jan 31 '13 #2

Post your reply

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