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

TabControlAdv cancelling Label edit

Thread ID:





111237 Sep 13,2013 11:18 AM UTC Sep 17,2013 02:59 PM UTC WinForms 1
Tags: Tools
Erwin Magsino
Asked On September 13, 2013 11:18 AM UTC


I was trying to figure out how can I cancel TabControlAdv from editing after calling StartLabelEdit?


Chandran R [Syncfusion]
Replied On September 17, 2013 02:59 PM UTC

Hi Erwin Magsino,


Thanks for using syncfusion products.




I was trying to figure out how can I cancel TabControlAdv from editing after calling StartLabelEdit?

We would like to inform that , TabControlAdv comes with the renaming functionality similar to MS Excel. Users can edit TabControlAdv's text at run-time using the LabelEdit property which has to be set to True.


You could cancel the editing by using the event “ AfterEdit”.


Please make use the below code snippet:


    this.tabControlAdv1.AfterEdit += new Syncfusion.Windows.Forms.Tools.EditEventHandler(this.tabControlAdv1_AfterEdit);



    private void tabControlAdv1_AfterEdit(object sender, Syncfusion.Windows.Forms.Tools.EditEventArgs e)


            e.EditText = this.tabControlAdv1.TabPages[this.tabControlAdv1.SelectedIndex].Text;



I have created a sample as per your requirement please find the sample from attachments.


For your reference:






Chandran R



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