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.
Unfortunately, activation email could not send to your email. Please try again.

focus a TabPage

Thread ID:

Created:

Updated:

Platform:

Replies:

37983 Dec 3,2005 06:49 AM Dec 5,2005 12:50 AM Windows Forms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On December 3, 2005 06:49 AM

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

Mano J [Syncfusion]
Replied On December 5, 2005 12:50 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;