473,398 Members | 2,393 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,398 software developers and data experts.

TreeViewNode ToolTip

Dear all,
is it possible to assign a tooltip to a .NET treeview node?
Thank you for your time.
Boni
Nov 21 '05 #1
4 1742
I don't think you can directly assign tooltip info to individual nodes. So
you will have to create a class that inherits TreeViewNode class. This child
class will have a variable for the ToolTip(string). You will need to create
these specialised nodes and add them to your treeview.

Hope this helps.

Here is some sample code

///
Public Class tvwTooltip
Inherits TreeNode

Public tvwToolTip As String

Sub New()
MyBase.New()

End Sub
End Class
'This goes in your form where you are adding the nodes to the treeview
Dim tvwNode As tvwTooltip

tvwNode = New tvwTooltip
tvwNode.tvwToolTip = "Parent Node"
tvwNode.Text = "Parent"
Me.TreeView1.Nodes.Add(tvwNode)
\\\
Nov 21 '05 #2
"Boni" <oilia@nospam> schrieb:
is it possible to assign a tooltip to a .NET treeview node?


<URL:http://groups.google.de/group/microsoft.public.dotnet.framework.windowsforms/msg/1f55fd4934524f0d>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Thanks Herfried,
It worked.
I will allow me to make a .NET feature request. In general I am impressed
how powerfull .NET classes are (and how much more productive the .NET
programming is relative to native coding), but sometimes I am wondering that
such simple things are not there. I.e. why not just provide tooltip propery
for all Forms controls? Or why not make a "build-in" checkbox column type
for datagrids and listviews?
In this case no "workaround" would be needed.
Thanky you very much for all your answers to my posts, you help me very much
all the time.
With best regards,
Boni

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb im Newsbeitrag
news:ei**************@TK2MSFTNGP09.phx.gbl...
"Boni" <oilia@nospam> schrieb:
is it possible to assign a tooltip to a .NET treeview node?


<URL:http://groups.google.de/group/microsoft.public.dotnet.framework.windowsforms/msg/1f55fd4934524f0d>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
"Boni" <oilia@nospam> schrieb:
I will allow me to make a .NET feature request. In general I am impressed
how powerfull .NET classes are (and how much more productive the .NET
programming is relative to native coding), but sometimes I am wondering
that such simple things are not there. I.e. why not just provide tooltip
propery for all Forms controls? Or why not make a "build-in" checkbox
column type for datagrids and listviews?
In this case no "workaround" would be needed.


In .NET 2.0 'TreeNode' will have a 'ToolTipText' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

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

Similar topics

0
by: Yves Royer | last post by:
Hi, I'm currently writing an application (in VS 2005 bčta 2) and made some own user controls. In each user control I added a ToolTip object so i can set some tooltips on checkboxes etc. What...
0
by: Yves Royer | last post by:
Hi, My first post didn't show up so here's a second try. I'm currently writing an application (in VS 2005 bčta 2) and made some own user controls. In each user control I added a ToolTip object...
6
by: ltt19 | last post by:
HI everyone, So, I have many buttons, and all of them must show a tooltip with the same string, except one word, that I must read this owrd from a variable. Although, the "ToolTip on x" property...
0
by: EricL | last post by:
Hello, I have written a Custom Control which inherits from ToolTip and it is an OwnerDraw tooltip. In the Popup event I calculate the size of the tooltip I need to display (rather large...
0
by: EricL | last post by:
Hello, I have written a Custom Control which inherits from ToolTip and it is an OwnerDraw tooltip. In the Popup event I calculate the size of the tooltip I need to display (rather large...
5
by: =?Utf-8?B?cGV0ZTE5Njk=?= | last post by:
I use Visual Studio 2005 and created a very simple Form with one button. I added a Tooltip for that button. It shows fine the first time I hover over that button. But if I let it disappear by the...
6
by: john | last post by:
I have the following textbox setup with Text & ToolTip Bindings as follows; I'm using Visual Studio 2008 VB: <asp:TextBox ID="txtDay1" runat="server" Text='<%# Eval("Day1") %>'...
3
omerbutt
by: omerbutt | last post by:
hi there i have downloaded a prototype tooltip from http://www.nickstakenburg.com/projects/prototip/ the logic it uses is to call the script after creating the <div> for example i am using the...
16
by: Charles Law | last post by:
I have to take this personally now. Tooltips have been flakey since the dawn of .NET, but to still have to put up with a disappearing tooltip in VS 2008 is getting beyond a joke. Tooltips have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.