Tab Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to add a tab control to a form I am working on. I drag and drop the tab control to the form, but where do I go from there? How do you make seperate tabs?

Please help!
 
Hi,

In the properties window for the tab control click on (Collection)
next to tabpages. Click on the button that appears it should open a window
which allows you to add tab pages.

Ken
 
* "=?Utf-8?B?UGF1bA==?= said:
I want to add a tab control to a form I am working on. I drag and drop
the tab control to the form, but where do I go from there? How do you
make seperate tabs?

Select the control in the Windows Forms form designer, then go to the
properties window which shows the currently selected control's
properties. There go to the 'TabPages' property and click the "..."
button, or click the link below the properties windows ("Add
TabPage...").
 
This is one thing mentioned in the Help files ;)

search them or use the dynamic help...

but

To add a control programmatically

Use the Add method of the TabPage object's Controls property:
' Visual Basic
' Assuming that TabControl1 exists and has at least one tab page
' Add a button to the first tab page
TabPage1.Controls.Add(New Button())


or

To add a tab in the designer

Drag a TabControl from the Windows Forms tab of the Toolbox to the
designer.
In the Properties window, click the Add Tab link.
- or -

In the Properties window, click the Ellipsis button () next to the
TabPages property to open the TabPage Collection Editor. Click the
Add button.
 
Back
Top