How to work with the VB.net Windows form tab control (Not dynamic)

I am new to the VB .Net winform tab control. I see plenty of tutorials on the web about creating the tabs dynamically in the VB .net code. The issue I have with this, is that I am not creating the tabs dynamically. I am using the tab control which is in the VB .net toolbox. I basically just dragged and dropped it onto my windows form. I see in the properties designer that their is a tabs collection. with several tabs. TabPage1, TabPage2, TabPage3. So how do I set values for various properties on each tab? For example on TabPage1 I have a text box control and on TabPage3 I have a GridView control? How do I access, setup and populate the controls on each tab? Do I need to instantiate any tabs? Or since I am using the tab from the toolbox, does that automatically instantiate each tab?
LVL 2
brgdotnetcontractorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
Everything that you put on the screen from the Toolbox is automatically instantiated for you. That job is done in the designer.vb file that accompanies the form and is invisible by default in the Solution Explorer.

To set the properties of each tab, you go to the TabPages property of the TabControl in the Properties Window, and you click on the button with ... that appears when you click on (Collection). The pages are listed on the left panel. You select one there, and you change its properties in the right panel.

You populate these tabs with the Form Designer, just as you do with controls on a form without tabs. You set them up by clicking on the control and then "play" with its properties in the Properties window.

Simply click on a tab in the Designer to bring it forward, then add controls to it as if it was a form.

Although they are put on a tab, you to not have to reference the tab in order to access a control. You access the controls as if they were on the form, simply by calling their name.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brgdotnetcontractorAuthor Commented:
Wow super, thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.