如何显示ListBox的工具提示? [英] How do I show a tool-tip for a ListBox?

查看:76
本文介绍了如何显示ListBox的工具提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户将鼠标悬停在ListBox上时,我想显示一个工具提示.

When the user hovers the mouse over a ListBox, I would like to show a tooltip. How do I do this?

推荐答案

如果将鼠标悬停在单个项目上需要特定的工具提示:
当列表由数据源绑定时,在ItemDatabound中,您可以单独访问每个列表项.您可以在其中添加工具提示,css等,以分别列出项目.因此,如果需要,可以为每个项目显示不同的工具提示.
If hover on individual items needs to have a specific tooltip:
While the list is binded by datasource, in ItemDatabound you can access each list items individually. There you can add tooltips, css, etc to list items individually. Thus different tooltips to each item can be shown if needed.


使用工具箱中的工具提示控件
Use Tooltip Control from Toolbox


这篇关于如何显示ListBox的工具提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆