articles

Home / DeveloperSection / Articles / TabControl in VB.Net

TabControl in VB.Net

TabControl in VB.Net

Pushpendra Singh 35971 13-Dec-2010

The TabControl in VB.Net

Where The TabControl is a container control that allows you to display multiple tabs 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

The Header Text of TabPages will be changed when application run.

TabControl in VB.Net

Select Tab:  Any tab page can be select

TabControl in VB.Net

The language tab page will open when the Language Tab is clicked.

TabControl in VB.Net

More TabPages can be added to 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.

 


Updated 04-Apr-2020

Leave Comment

Comments

Liked By