1. Herfried K. Wagner’s VB.Any
  2. .NET
  3. Frequently Asked Questions

Disabling tooltips in a treeview control

Disabling tooltips in a treeview control
<URL:https://dotnet.currifex.org/dotnet/faqs/disabletreeviewtooltips/en/>
----------------------------------------------------------------------------

Disabling tooltips in a treeview control

It's possible to disable tooltips that are shown when hovering a node by
adding the 'TVS_NOTOOLTIPS' window style to the control's creation
parameters:

\\\
Imports System.Windows.Forms

Public Class TooltipLessTreeView
    Inherits TreeView

    Protected Overrides ReadOnly Property CreateParams() As CreateParams
        Get
            Const TVS_NOTOOLTIPS As Int32 = &H80
            Dim cp As CreateParams = MyBase.CreateParams
            cp.Style = cp.Style Or TVS_NOTOOLTIPS
            Return cp
        End Get
    End Property
End Class
///