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)
 9706  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

Tarun Kumar added new Article JAVA - AbstractFactory Pattern   8 hours ago

Tarun Kumar added new Blog JAVA - Factory Pattern   8 hours ago

Mayank Tripathi added new Question Can a interface extend another interface?   15 hours ago

Felix Pickles Created New Discussion In java, how to concatenate two arrays   yesterday

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