473,394 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Highlight in Tree view

In the tree view, if the size of the text is longer than the size of the
control and the mouse is hovered on a item, the item is displayed in full
with a yellow highlight. Is is possible to disable that feature in the tree
view.

Suresh S.
Mar 8 '06 #1
3 1512
You need to override it like this:

Public Class TreeViewEx
Inherits TreeView
Private Const TVS_NOTOOLTIPS As Integer = &H80
Protected Overrides ReadOnly Property CreateParams() As
System.Windows.Forms.CreateParams
Get
Dim params As CreateParams = MyBase.CreateParams
params.Style = params.Style Or TVS_NOTOOLTIPS
Return params
End Get
End Property
End Class

/claes

"sureshsmani" <su*****@meritoutsource.co.uk> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
In the tree view, if the size of the text is longer than the size of the
control and the mouse is hovered on a item, the item is displayed in full
with a yellow highlight. Is is possible to disable that feature in the
tree
view.

Suresh S.

Mar 8 '06 #2
It worked. Thanks for you help.
"Claes Bergefall" <cl*************@nospam.nospam> wrote in message
news:uO**************@tk2msftngp13.phx.gbl...
You need to override it like this:

Public Class TreeViewEx
Inherits TreeView
Private Const TVS_NOTOOLTIPS As Integer = &H80
Protected Overrides ReadOnly Property CreateParams() As
System.Windows.Forms.CreateParams
Get
Dim params As CreateParams = MyBase.CreateParams
params.Style = params.Style Or TVS_NOTOOLTIPS
Return params
End Get
End Property
End Class

/claes

"sureshsmani" <su*****@meritoutsource.co.uk> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
In the tree view, if the size of the text is longer than the size of the
control and the mouse is hovered on a item, the item is displayed in full with a yellow highlight. Is is possible to disable that feature in the
tree
view.

Suresh S.


Mar 9 '06 #3
not sure why you'd want to disable that and make it harder to read? but that
is called a tooltip for future reference
"sureshsmani" <su*****@meritoutsource.co.uk> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
In the tree view, if the size of the text is longer than the size of the
control and the mouse is hovered on a item, the item is displayed in full
with a yellow highlight. Is is possible to disable that feature in the
tree
view.

Suresh S.

Mar 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: 50295 | last post by:
Hi everyone, This one is better experienced than explained, so I'm including a code sample below. Please and save (as an html file) and view with NN or Firefox (or maybe even Mozilla), and then...
0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
2
by: Steve K | last post by:
Firstly, how the heck does this guy do it? Writing reams of (awesome) code, debugging, responding to Newsgroups etc., all while commanding the ridiculous price of FREE?!?!?! More power to him! ...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
1
by: David A. Osborn | last post by:
Is there a way to maintain the highlight of an item in a tree view control? Currently if I select another control on the screen then the item on the tree view loses its highlight. I want to...
1
by: Boni | last post by:
Deat all, I need to select (highlight) a node in a tree view. For that I use: _Node.TreeView.SelectedNode = _Node. But when my program focuses other windows a highliting is removed from the...
0
by: rinishrk | last post by:
Hi, I have a web application that contains subfolders Admin and User with related webpages inside them. Within the Admin folder I have a page containing a Tree View Control.I want this tree view...
3
by: gmail | last post by:
Hi Friends, Can any body suggest me on this. I am working on .NET 2005 Frame work 2.0 . I am facing problem using the tree stucture. I created the site map.Now i want use the site map in every...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.