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.

Stopping tab activation when right clicking...

Thread ID:





16824 Jul 26,2004 01:29 AM Jul 27,2004 06:13 AM Windows Forms 3
Tags: Tools
Administrator [Syncfusion]
Asked On July 26, 2004 01:29 AM

Is there any way to stop the TabControlAdv control activating the tab a user r clicks on... Typically we have a close menu on this and its annoying that it first brings the tab to the foreground....

Administrator [Syncfusion]
Replied On July 26, 2004 05:07 PM

Hi Peterainbow, You could do so by handling the TabControlAdv''s SelectedIndexChanging event as shown in the code snippet below : private void tabControlAdv1_SelectedIndexChanging(object sender, Syncfusion.Windows.Forms.Tools.SelectedIndexChangingEventArgs args) { if (Control.MouseButtons == MouseButtons.Right) args.Cancel = true; } Please refer to the complete sample attached here, and let me know if this works for you. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On July 27, 2004 02:25 AM

Yep that worked, i found the following useful hitTabIndex = tabControl.HitTestTabs(tabControl.PointToClient(Cursor.Position)); to find which tab was being hit.... Might be nice in future iterations of the tools to have r click activation as a style property

Administrator [Syncfusion]
Replied On July 27, 2004 06:13 AM

Hi Peterainbow, Thanks for the update. I have forwarded you suggestion to the development team and we could consider this as a feature request for a future release of Essential Tools. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


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.