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

Very newbie question about Navigation?

P: 16
Hi I am trying to learn Visual Basic and I am getting everything for the most part, mainly because of my ability to read code like a book, but my question is what is the best way to Navigate through a Visual Basic program.

For example lets say I have a big Visual Basic Form1.vb and on Form1.vb there are buttons and I click on this button, now the only thing I want to change would be a "content" area, I want the navigation to be the same.

Do I load a new form and make it look exactly like the other one or is their an easy way to change just the contents of the "content" area? I have been looking at Panels for this, is this the right way to go?

Any help would be very much appreciated.

Thank You!
Sep 6 '07 #1
Share this Question
Share on Google+
7 Replies


VBPhilly
P: 95
Hi I am trying to learn Visual Basic and I am getting everything for the most part, mainly because of my ability to read code like a book, but my question is what is the best way to Navigate through a Visual Basic program.

For example lets say I have a big Visual Basic Form1.vb and on Form1.vb there are buttons and I click on this button, now the only thing I want to change would be a "content" area, I want the navigation to be the same.

Do I load a new form and make it look exactly like the other one or is their an easy way to change just the contents of the "content" area? I have been looking at Panels for this, is this the right way to go?

Any help would be very much appreciated.

Thank You!
You may be referring to visual inheritance where you have one form and derive other forms from it.

Here is a good article on the topic:
http://www.devcity.net/Articles/35/visual_inherit.aspx
Sep 6 '07 #2

P: 16
Thanks that is what I was looking for unfortunately I should have specified it is Visual basic 2005 Express Edition so a couple of things in that article were different. It did however get me to looking around a lot more and I did find a template I could use. Thank you very much!
Sep 6 '07 #3

P: 16
Actually I am not sure if this is what I am looking for...
I am looking for a way to make it appear that everything is happening in the same window. Meaning when I click a button I don't want another form to open up I just want it to repopulate the current window with new information.....
Sep 6 '07 #4

VBPhilly
P: 95
Actually I am not sure if this is what I am looking for...
I am looking for a way to make it appear that everything is happening in the same window. Meaning when I click a button I don't want another form to open up I just want it to repopulate the current window with new information.....
Your original approach is good, then.

An idea would be to have two panel objects.
One docked at the bottom to host the buttons.
Another filling the rest of the form.

You can even have panels inside panels. Endless possibilities.
Sep 6 '07 #5

P: 16
Your original approach is good, then.

An idea would be to have two panel objects.
One docked at the bottom to host the buttons.
Another filling the rest of the form.

You can even have panels inside panels. Endless possibilities.
Thanks! Would you happen to know of any tutorials I could read/do that would help me get understand the basics of panels?
Sep 7 '07 #6

jamesd0142
100+
P: 469
newbi here!

How about creatinglabels and when u click the botton it sets all other labels to hidden and only enables the 1 u want...
Sep 14 '07 #7

P: 16
Actually I did something similar with Panels, I saw a tutorial on VBDudes.com about it and is actually working out pretty well.
Thanks for the reply!
Sep 14 '07 #8

Post your reply

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