Home > DeveloperSection > Articles > TabControl in VB.Net

TabControl in VB.Net

Posted by  Pushpendra Singh
on    December-13-2010 18:20 PM

VB.Net VB.Net 
Ratings:
0 Comment(s)
 8025  View(s)
Rate this:

TabControl in VB.Net

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.

 
















Recent Activities


Kamlakar Singh added new Blog Convert Text Document to PDF File   11 days ago

Kamlakar Singh added new Article Introduction to Backbone.js   11 days ago

Kamlakar Singh added new Question Explain the AdRotator Control.   11 days ago

Don't want to miss updates? Please click the below button!