How to disable TreeView "ToolTipText"

Posted on 2005-04-28
Last Modified: 2013-12-26

I have a TreeView. Some node texts are longer than the TreeView width so when i move then mose on it, I can see the entire text in a sort of ToolTipText. I don't want to have it. Is that possible to diable ?
Question by:sroz

    Author Comment

    I fogot : I work with vb6 and the question is How to disable (not diable) it ?
    LVL 8

    Accepted Solution

    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal NINdex As Long, ByVal dwNewLong As Long) As Long
    Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal NINdex As Long) As Long
    Private Const ToolTip = 128

    Private Sub Form_Load()
    SetWindowLong TreeView1.hwnd, -16, ToolTip Or GetWindowLong(TreeView1.hwnd, -16)
    End Sub

    That should disable it for you.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now