How to work with the 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?
Who is Participating?
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.
brgdotnetcontractorAuthor Commented:
Wow super, thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.