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:





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


i'm currently using Syncfusion TabControlAdv with TabPageAdv.

How can i close a TabPageAdv by Mouse-Middleclick?

Best regards


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))

Please let me know if you have any queries.

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.

Jeraldes J


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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