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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I cancel the tab selection change event?

Thread ID:

Created:

Updated:

Platform:

Replies:

53656 Dec 18,2006 04:29 PM UTC Dec 18,2006 05:16 PM UTC WinForms 1
loading
Tags: Tools
James Blibo
Asked On December 18, 2006 04:29 PM UTC

How can I cancel the tab selection change event?

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

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.

Warning Icon 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.Close Icon

;