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
Hottracking.zip