|
The TabControl is a container control that allows you to display multiple tab on
a single form and it allowed switching between the tabs.
How to use TabControl
Drag and drop TabControl from Toolbox on the window Form.

Change header
text of TabPages
Private
Sub Form27_Load(ByVal
sender As System.Object,
ByVal e As
System.EventArgs) Handles
MyBase.Load
TabPage1.Text = "Email"
'Header text of TabPage1 will be chnaged
TabPage2.Text =
"Language" 'Header
text of TabPage2 will be chnaged
End Sub
Header Text of TabPages will be change when
application run.

Select Tab: Any tab page can be select

Language tab page will open when Language Tab is clicked.

More TabPages can be added in TabControl.
Private
Sub Form27_Load(ByVal
sender As System.Object,
ByVal e As
System.EventArgs) Handles
MyBase.Load
'Add new tab page
TabControl1.TabPages.Add("Database")
End Sub

TabControl properties
ItemSize: Gets or sets the size of the
control's tabs.
TabStop: Gets or sets a value indicating
whether the user can give the focus to this control using the TAB key.
Visible: Gets or sets a value indicating
whether the control and all its child controls are displayed.
|