473,320 Members | 1,914 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,320 software developers and data experts.

How to displays my own tooltip and a treeview ?

Hi all,

I have a treeview control. I want when my user hovers over
certain nodes to display a tooltip for the user. How can I do
that?

tnx.
Nov 21 '05 #1
4 4399
I tried to do that some days ago. but nothing got. I want to know that too.

but, I suggest you to modify a tooltip object when select a treenode, then
show it.

<Lucio H> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl...
Hi all,

I have a treeview control. I want when my user hovers over
certain nodes to display a tooltip for the user. How can I do
that?

tnx.

Nov 21 '05 #2
Hi,

http://www.windowsformsdatagridhelp....6-16f7e283cbe9

Ken
----------------------
<Lucio H> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl...
Hi all,

I have a treeview control. I want when my user hovers over
certain nodes to display a tooltip for the user. How can I do
that?

tnx.

Nov 21 '05 #3
>
http://www.windowsformsdatagridhelp....6-16f7e283cbe9

Ken


sorry, I need the tip only after I click on a node, how do I change this to
use the Click event?

Private Sub trvNorthWind_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles trvNorthWind.MouseMove
Dim nd As TreeNode

Try
Dim pt As New Point(e.X, e.Y)
nd = trvNorthWind.GetNodeAt(pt)
ToolTip1.SetToolTip(trvNorthWind, nd.Text)
Catch
ToolTip1.SetToolTip(trvNorthWind, "")
End Try
End Sub
Nov 21 '05 #4
Hi,

Try something like this in the treeview click event

Dim n As TreeNode

Try
n = TreeView1.GetNodeAt(TreeView1.MousePosition)
ToolTip1.SetToolTip(trvNorthWind, nd.Text)
Catch
ToolTip1.SetToolTip(trvNorthWind, "")
End Try
Ken
-----------------
<Lucio H> wrote in message news:u2**************@TK2MSFTNGP09.phx.gbl...

http://www.windowsformsdatagridhelp....6-16f7e283cbe9

Ken


sorry, I need the tip only after I click on a node, how do I change this to
use the Click event?

Private Sub trvNorthWind_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles trvNorthWind.MouseMove
Dim nd As TreeNode

Try
Dim pt As New Point(e.X, e.Y)
nd = trvNorthWind.GetNodeAt(pt)
ToolTip1.SetToolTip(trvNorthWind, nd.Text)
Catch
ToolTip1.SetToolTip(trvNorthWind, "")
End Try
End Sub

Nov 21 '05 #5

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

Similar topics

1
by: Dmitry Karneyev | last post by:
Hi! How to add tooltip to a TreeView node? Thanks for any advice! Dmitry.
0
by: Timo Kunze | last post by:
Hi! If you move the mouse over an item that's part of a treeview and wider than the treeview, a tooltip showing the full item text will be displayed. I try to do this for ListBoxes and...
4
by: Boni | last post by:
Dear all, is it possible to assign a tooltip to a .NET treeview node? Thank you for your time. Boni
1
by: Boni | last post by:
Dear all, I have a window with a treeview. If resize this window, so that some node text don't fit into window then a tooltip will be shown immediately when howering such (and only such node). The...
5
by: Pavan | last post by:
My goal is to accomplish the tooltip functionality for all the neodes in a tree view and i have the following three Events in my C# application. Name of my TreeView Control (AITreeView) 1)...
3
by: Vikram | last post by:
how to show tooltip for the tree nodes in the treecontrol of ms web controls in asp.net 1.0
0
by: mscdex | last post by:
I have a tooltip control added to my form as well as a treeview control. By using a Microsoft KB article (http://support.microsoft.com/kb/319963) as a guide, I was able to add tooltip support for...
4
by: Pieter | last post by:
Hi, Using VB.NET 2.0, Windows Forms. I want the ToolTip to be shown on every TextBox, ComboBox and DataGridView continuously, and show the contence of these controls. Is there a way to add the...
1
by: Richard | last post by:
I'm trying to mimic how the TreeView shows a full text inplace tooltip when the mouse hovers over of TreeView node whose text is truncated due to skinny form or panel. In the IDE I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.