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