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.

TabControl in VB.Net

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.

TabControl in VB.Net

Select Tab:  Any tab page can be select

TabControl in VB.Net

Language tab page will open when Language Tab is clicked.

TabControl in VB.Net

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 in VB.Net

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.

 

  Modified On Mar-22-2018 07:17:09 AM

Leave Comment