Articles in this section
Category / Section

How to completely disable tooltips for the TreeNodeAdv in WinForms TreeViewAdv?

1 min read

Disable tooltips for the TreeNodeAdv

The tooltips for the treeNodeAdv can be completely disabled by handling the BeforePopup event associated with the TreeViewAdv.ToolTipControl as shown below. It will be helpful if the user needs to display only the HelpText for the nodes.

C#

this.treeViewAdv1.ToolTipControl.BeforePopup += new CancelEventHandler (Tooltip_BeforePopup);
private void Tooltip_BeforePopup (object sender, CancelEventArgs e)
{
   args.Cancel = true;
}

VB

Private Me.treeViewAdv1.ToolTipControl.BeforePopup += New CancelEventHandler (Tooltip_BeforePopup)
Private Sub Tooltip_BeforePopup(ByVal sender As Object, ByVal e As CancelEventArgs)
   args.Cancel = True
End Sub

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied