How to programmatically select a tab?
9 Dec 2019 / 1 minute to read
The following code snippet illustrates the ways to select a Tab programmatically.
//Select Second Tab. this.tabControlAdv1.SelectedTab = this.tabPageAdv2; or //Select Second Tab. this.tabControlAdv1.SelectedIndex= 1;
Private Sub TabControlAdv1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControlAdv1.SelectedIndexChanged 'Select Second Tab. Me.tabControlAdv1.SelectedTab = Me.tabPageAdv2 or 'Select Second Tab. Me.tabControlAdv1.SelectedIndex = 1 End Sub
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page