We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

focus a TabPage

Hello, i have a TabControlAdvanced in my form and i want to display (focus) programaticly a given TabPage, could you please tell me how can i do that ? Thanks in advance

3 Replies

MJ Mano J Syncfusion Team December 5, 2005 05:50 AM UTC

Hi, You could use the SelectedTab or SelectedIndex property for this purpose // Selected Tab private void Form1_Load(object sender, System.EventArgs e) { this.tabControlAdv1.SelectedTab = this.tabPageAdv2; } // Selected Index private void Form1_Load(object sender, System.EventArgs e) { this.tabControlAdv1.SelectedIndex = 2; } The above code will set focus to the second tabPage on form_load. Please let me know if you have any questions. Thanks for using Syncfusion products. Regards, Mano


RA Randy May 28, 2021 01:42 PM UTC

Mano J - the solution you posted works!  Thank you!


VR Vijayalakshmi Roopkumar Syncfusion Team June 1, 2021 06:13 AM UTC

Hi Randy 
 
Thank you for your update. 
 
We are glad that our solution works fine at your end.  
 
Please let us know if you need any other assistance. 
 
Regards, 
Vijayalakshmi VR 


Loader.
Live Chat Icon For mobile
Up arrow icon