Live Chat Icon For mobile
Live Chat Icon

How do I programatically select a Tab Page?

Platform: WinForms| Category: TabControl

There are a couple of ways you could do select a tab page programmatically:

[C#]
//Select the second Tab Page
this.tabControl.SelectedTab = this.tabPage2
or
//Select Second Tab
this.tabControl.SelectedIndex= 1;
[VB.NET]
’Select the second Tab Page
Me.tabControl.SelectedTab = Me.tabPage2
or
’Select Second Tab
Me.tabControl.SelectedIndex= 1

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.