| | |
navigation within multiple form in VB.NET
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2006
Posts: 5
Reputation:
Solved Threads: 0
Hi guys,
Currently I am developing a window forms application using VB.NET. Yet, I have a problem in forms navigation.
The problem is :
Now I have created 3 forms. Let say form 1, form 2 and form 3.
Now, I want to navigate from form 1 to form 2, and from form 2 to 3 then form 3 back to form 1 again. Its time i navigate to the next form..i want to make sure that the previous form is closed.
In this case, Do you guys have any solutions for it?
Currently I am developing a window forms application using VB.NET. Yet, I have a problem in forms navigation.
The problem is :
Now I have created 3 forms. Let say form 1, form 2 and form 3.
Now, I want to navigate from form 1 to form 2, and from form 2 to 3 then form 3 back to form 1 again. Its time i navigate to the next form..i want to make sure that the previous form is closed.
In this case, Do you guys have any solutions for it?
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
I am using vb 2005 express.
Double click on the "My Project" in Solution Explorer. Under the Application tab, lower left hand side, you will see Shutdown Mode. In the dropdown box select "When last form closes".
Now in a button in form1 put
You will do the same thing in form2 and form3.
Notice the order. If you do Me.Close first the program ends, so, always open the next form before closing the current form.
Double click on the "My Project" in Solution Explorer. Under the Application tab, lower left hand side, you will see Shutdown Mode. In the dropdown box select "When last form closes".
Now in a button in form1 put
VB.NET Syntax (Toggle Plain Text)
Form2.Show() Me.Close()
Notice the order. If you do Me.Close first the program ends, so, always open the next form before closing the current form.
![]() |
Similar Threads
- Printing of a Form in VB.NET? (VB.NET)
- Login form in VB.net (VB.NET)
- Timer contral with multiple forms in VB.net (VB.NET)
- Centering a form in VB.NET (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Windows Forms Listbox
- Next Thread: help with a project(tomagatchi clone)
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





