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

tooltip on listbox

Can anybody guide me how to use tooltip on listbox
Aug 13 '08 #1
8 1814
Plater
7,872 Expert 4TB
Did you add a tooltip object to your form?
Aug 13 '08 #2
Did you add a tooltip object to your form?


I dont know any thing abt it....It wud b nice if u will tell me
Aug 13 '08 #3
Did you add a tooltip object to your form?


I hav used this code


private void lstRecommendedTest_MouseHover(object sender, EventArgs e)
{

ToolTip tp = new ToolTip();
tp.Show("hi", lstRecommendations, x, y, 1130);
}



private void lstRecommendedTest_MouseMove(object sender, MouseEventArgs e)
{
x = e.X;
y = e.Y;
}
Aug 13 '08 #4
Plater
7,872 Expert 4TB
It would be nice if you did any work for yourself.
On your toolbar in designer mode you should be able to drag and drop a tooltip object onto your form.
you can then add tooltip text to any of the controls on your form.
MSDN ToolTip if need be.
Aug 13 '08 #5
Drop a "ToolTip" component on to your form, view the properties of your ListBox control, and all of the Tool Tip properties are accessible. To set the message at RunTime: Me.ListBox1.ToolTip1.Text = (Whatever you want your Tool Tip to display when the user mouses over the control)

KK
Aug 13 '08 #6
private void lstRecommendedTest_MouseHover(object sender, EventArgs e)
{

tp.Show(lstRecommendedTest.SelectedItem.ToString() , lstRecommendedTest, x, y, 1300);
this.toolTip1.Show(@@@@@Here I want to show the listbox item on which the mouse is hovered@@@@@, x, y, 1300);)
}



private void lstRecommendedTest_MouseMove(object sender, MouseEventArgs e)
{
x = e.X;
y = e.Y;
}


The problem is dat I dont know hw to show the listbox item which is hovered in the tool tip
Aug 13 '08 #7
joedeene
583 512MB
private void lstRecommendedTest_MouseHover(object sender, EventArgs e)
{

tp.Show(lstRecommendedTest.SelectedItem.ToString() , lstRecommendedTest, x, y, 1300);
this.toolTip1.Show(@@@@@Here I want to show the listbox item on which the mouse is hovered@@@@@, x, y, 1300);)
}



private void lstRecommendedTest_MouseMove(object sender, MouseEventArgs e)
{
x = e.X;
y = e.Y;
}


The problem is dat I dont know hw to show the listbox item which is hovered in the tool tip

i dont think that you can do that, by just hover, when the user clicks on an item you can code it to show in the tooltip?
Aug 13 '08 #8
Plater
7,872 Expert 4TB
If you want a message to change on hover, I recomend just changing some label text near your listbox control. That way it can be changed imediately on mouse over, instead of trying to figure out the pause/wait time to show a popup tooltip and then closing it again.
Aug 13 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: hiroshi ochi | last post by:
Hello, Using MSIE 6.0 and above, with javascript is it possible to display an individual tooltip for each item in a listbox? I need this functionality to show the listitems that are longer...
6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
3
by: Shiju Poyilil | last post by:
Is there anyway to assign tooltip dynamically to the list items in the listbox in asp.net. Rgds Shiju
11
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...
5
by: Nikolay Petrov | last post by:
I have a ListBox, which is binded to a DataTable. I would like to display a tooltip when the mouse cursor hovers over the items in the ListBox. I don't know how to find the index if ListBox item,...
2
by: cd | last post by:
Is it possible to add a tool tip to an asp .net listbox control utilizing javascript or another method? I would like to add a tooltip when the user hovers over the item in the listbox. I was...
4
by: Tim Zych | last post by:
I'm displaying a tooltip related to a listbox based on the selected item. It works well except when I move the cursor away from the listbox and then hover back over it, the tooltip pops up...
0
by: arnabit | last post by:
I have a listbox , i want to have a tooltip for the items,but as listbox does not support mouse over event i can not do so. I am writting the code below .Please help me to fix this problem ...
4
by: SenileOwl | last post by:
I'm working with Visual Basic .Net 2005 I'm trying to create a tooltip for a bound listbox and a combobox. I want the tooltip to be of the item the mouse is hovering over. Is there an easy way...
0
by: tshad | last post by:
In VS 2008, is there a way to have the individual list item description to show up in a tooltip when you have your mouse over the list item? I have a list item that has descriptions that are...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.