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

Need to disable the underlining of the node text

Thread ID:





39309 Jan 4,2006 10:52 AM UTC Jan 4,2006 12:11 PM UTC WinForms 1
Tags: Tools
Asked On January 4, 2006 10:52 AM UTC

Hi All, I am using triewviewadv 3.3v.I need to disable the underlining of the node text when it is hottracked. Thanks in advance. Regards, Jonas

Deepa TS [Syncfusion]
Replied On January 4, 2006 12:11 PM UTC

Hi Jonas, To disable underlining the TreeNodeAdv text when it is hot tracked, handle the TreeViewAdv''s BeforeNodePaint and AfterNodePaint events as shown below : Font oldfont = null; private void treeViewAdv1_BeforeNodePaint(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvPaintEventArgs e) { oldfont = e.Node.Font; if ((e.HotTracked) && (!e.Active)) { e.HotTracked = false; e.Node.Font = new Font("Times New Roman", 15, FontStyle.Italic); } } private void treeViewAdv1_AfterNodePaint(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvPaintEventArgs e) { e.Node.Font = oldfont; } Please refer to the attached sample that illustrates this and let me know if this meets your requirements. Thanks for your interest in Syncfusion products. Regards, Deepa.T.S



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