How to completely disable tooltip for the TreeNodeAdv in WinForms TreeViewAdv?
Disable tooltips for the TreeNodeAdv
The tooltip 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