944,150 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 8865
  • VB.NET RSS
Nov 10th, 2006
0

navigation within multiple form in VB.NET

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
h3ngh3ng is offline Offline
5 posts
since Nov 2006
Nov 10th, 2006
0

Re: navigation within multiple form in VB.NET

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
VB.NET Syntax (Toggle Plain Text)
  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.
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Nov 10th, 2006
0

Re: navigation within multiple form in VB.NET

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
h3ngh3ng is offline Offline
5 posts
since Nov 2006
Nov 10th, 2006
0

Re: navigation within multiple form in VB.NET

I think "Shutdown Mode" is new to vbe 2005. Try the code anyway.
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Nov 12th, 2006
0

Re: navigation within multiple form in VB.NET

I will do further researchs abou the code, Anyway thanks for your helps!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
h3ngh3ng is offline Offline
5 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Windows Forms Listbox
Next Thread in VB.NET Forum Timeline: help with a project(tomagatchi clone)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC