473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Loading one form from another

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
1 1225
IronRazer
83 64KB
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

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

Similar topics

13
by: Fotozine | last post by:
well, after several months of learning, writing and developing my site, (and colecting hunderts of users in few days) one person have "included" my whole site under his domain. in frameset: ...
0
by: Airborne | last post by:
I am a newbie. In fact I am in school working on my Java project. Could someone please explain to me how to load a form from another form. I have a main form and from that form I want to show...
2
by: Norvin Laudon | last post by:
Hi, I have a form with various controls which are wired to events when their data, listindex, or whatever changes. Simple question: As I'm loading the form (in the constructor), I need to set...
1
by: Gidi | last post by:
Hi, I'm writing a windows application and i need to check if a certain file exsits before i'm loading my MainForm. Incase the file doesn't exsit, i want to load a different form (without...
3
by: John | last post by:
Hi Is it possible to load a few forms without showing them? Will it make showing of forms any faster when needed? Thanks Regards
9
by: ad | last post by:
I use the codes below to clear the cookie: HttpCookie myCookie = new HttpCookie("us_id"); myCookie.Expires = DateTime.Now.AddDays(-1d); Response.Cookies.Add(myCookie); It do well when the...
5
by: Roman | last post by:
Hello i have main mdi parent window from which i want to load a form, but during creating form object and later calling its Show method i want to display progress and have the main window...
3
manoj9849967222
by: manoj9849967222 | last post by:
Hi All I have a form with some textboxes.Now i want that when ever i double click one of the Textbox it should load another form. I have witten some codes but its not working. Please help.
1
by: Franck | last post by:
I have a form with a loading bar as marquee so i don't need to play with the progress thing. It's just a form to show activity in other way. So what i need to do is start it at the beginning of...
3
by: Salim Zaabi | last post by:
Hi EveryBody, Can anyone tell how do I display/show logo or picture when loading a form, NOT ON THE FORM, and it disappears after loading is complete.
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.