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

ListBox Tooltip

cd
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 seeking a code sample.

Thank you,
--
Christopher
Dec 6 '05 #1
2 5464
Short answer: Yes.

The asp:listbox renders as an HTML SELECT element.
Adding the html attribute "title" to the rendered SELECT will give you
a tooltip

for VB
<listbox>.Attributes.Add("title", "Title goes here")
- and you don't even need javascript!

HOWEVER (and this is probably your problem) IE does not implement title
for the SELECT element.

If you really, really, realy need to fake it, you can use the
mouseover/ mouseout events to show/hide a seperate "tooltip" HTML
element.
Don't forget the IE windowed controls z-index bug!
http://support.microsoft.com/default...b;en-us;177378

-- addup --

Dec 6 '05 #2
cd
Thank you for the information.
--
Christopher
"cd" wrote:
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 seeking a code sample.

Thank you,
--
Christopher

Dec 6 '05 #3

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

Similar topics

5
by: Brian | last post by:
Hi, All, I'm using MS.net 2003 and using a windows.forms.listbox control for my window application but I don't know why the Horizontal Scrollbar could NOT be shown even if I set...
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...
1
by: Edward | last post by:
I am having a terrible time getting anything useful out of a listbox on my web form. I am populating it with the results from Postcode lookup software, and it is showing the results fine. What...
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...
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: srichand | last post by:
Hi All, Can somebody help me out in adding a tooltip to a listbox using js....
6
by: GS | last post by:
how can I set tooTip on ToolTip1 for a listbox?
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.