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.

How can I cancel the tab selection change event?

Thread ID:

Created:

Updated:

Platform:

Replies:

53656 Dec 18,2006 11:29 AM Dec 18,2006 12:16 PM Windows Forms 1
loading
Tags: Tools
James Blibo
Asked On December 18, 2006 11:29 AM

How can I cancel the tab selection change event?

Gopalakrishnan S [Syncfusion]
Replied On December 18, 2006 12:16 PM

Hi James,

Thanks for using Syncfusion products.

You can use the SelectedIndexChanging event to cancel the Tab selection change event.

Here is the code snippet:

private void tabControlAdv1_SelectedIndexChanging(object sender, Syncfusion.Windows.Forms.Tools.SelectedIndexChangingEventArgs args)
{
if(args.NewSelectedIndex==2)
{
args.Cancel=true;
}
}

Please let me know if this helps.

Best Regards,
S.Gopal.

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.

;