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

Close TabPageAdv by Middleclick

Thread ID:

Created:

Updated:

Platform:

Replies:

97380 Nov 23,2010 08:46 AM UTC Nov 25,2010 09:44 AM UTC WinForms 3
loading
Tags: Tools
Daniel Rottschäfer
Asked On November 23, 2010 08:46 AM UTC

Hello,

i'm currently using Syncfusion 8.4.0.10 TabControlAdv with TabPageAdv.

How can i close a TabPageAdv by Mouse-Middleclick?

Best regards

Daniel


Lingaraj S [Syncfusion]
Replied On November 25, 2010 06:40 AM UTC

Hi Daniel,

Thank you for your interest in Syncfusion products.

Please try using TabPageAdv.Close method in MouseUp event to achieve your requirement.

Refer the code below:

this.tabControlAdv1.MouseUp += new MouseEventHandler(tabControlAdv1_MouseUp);
void tabControlAdv1_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Middle && this.tabControlAdv1.GetTabRect(this.tabControlAdv1.SelectedIndex).Contains(e.Location))
{
this.tabControlAdv1.TabPages[this.tabControlAdv1.SelectedIndex].Close();
}
}


Please let me know if you have any queries.

Regards,
Lingaraj S.


Daniel Rottschäfer
Replied On November 25, 2010 09:37 AM UTC

Thank you.


Jeraldes J [Syncfusion]
Replied On November 25, 2010 09:44 AM UTC

Hi Daniel,

Thanks for your update.

Please let us know if you need any other details.

Regards,
Jeraldes J


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

;