Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to disable TreeView "ToolTipText"

Posted on 2005-04-28
Medium Priority
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

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

Accepted Solution

List244 earned 1000 total points
ID: 13886708
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

581 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