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.

Need to disable the underlining of the node text

Thread ID:





39309 Jan 4,2006 05:52 AM Jan 4,2006 07:11 AM Windows Forms 1
Tags: Tools
Asked On January 4, 2006 05:52 AM

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 07:11 AM

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.

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.