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.

Close TabPageAdv by Middleclick

Thread ID:

Created:

Updated:

Platform:

Replies:

97380 Nov 23,2010 03:46 AM Nov 25,2010 04:44 AM Windows Forms 3
loading
Tags: Tools
Daniel Rottschäfer
Asked On November 23, 2010 03:46 AM

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 01:40 AM

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 04:37 AM

Thank you.


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

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.

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.

;