navigation within multiple form in VB.NET

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2006
Posts: 5
Reputation: h3ngh3ng is an unknown quantity at this point 
Solved Threads: 0
h3ngh3ng h3ngh3ng is offline Offline
Newbie Poster

navigation within multiple form in VB.NET

 
0
  #1
Nov 10th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: navigation within multiple form in VB.NET

 
0
  #2
Nov 10th, 2006
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
  1. Form2.Show()
  2. Me.Close()
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 5
Reputation: h3ngh3ng is an unknown quantity at this point 
Solved Threads: 0
h3ngh3ng h3ngh3ng is offline Offline
Newbie Poster

Re: navigation within multiple form in VB.NET

 
0
  #3
Nov 10th, 2006
Thanks for your reply, I couldn't find the shutdown mode when I followed the procedure given by you. I think is because I am using Microsoft Visual Studio .NET 2003 not 2005.

So any idea about it regarding of the problem I posted previously?
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: navigation within multiple form in VB.NET

 
0
  #4
Nov 10th, 2006
I think "Shutdown Mode" is new to vbe 2005. Try the code anyway.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 5
Reputation: h3ngh3ng is an unknown quantity at this point 
Solved Threads: 0
h3ngh3ng h3ngh3ng is offline Offline
Newbie Poster

Re: navigation within multiple form in VB.NET

 
0
  #5
Nov 12th, 2006
I will do further researchs abou the code, Anyway thanks for your helps!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC