The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
MJMano 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
RARandyMay 28, 2021 01:42 PM UTC
Mano J - the solution you posted works! Thank you!
VRVijayalakshmi 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
Need More Help?
Get personalized assistance from our support team.