如何在Winform列表框项目上添加工具提示 [英] how to add tooltips on winform list box items

查看:64
本文介绍了如何在Winform列表框项目上添加工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用win窗体的列表框控件.

I am using win form's list box control.

我想在列表项上添加工具提示.我找不到任何默认的此类属性.

I want to add tool tips on list items. I could not find any default such properties.

请分享给我,如何在Winform列表框项目上添加工具提示?

Please share me , how can i add tool tips on winform list box items ?

谢谢

推荐答案

我想我要提到的是,如果要使用ShowItemToolTips布尔属性(而不是ListBox),则在ListView上有一个ShowItemToolTips布尔属性.将该属性设置为true,然后在ListView项上分配ToolTipText值.

I thought I'd mention that there is a ShowItemToolTips boolean attribute on ListView, if you want to use that instead of a ListBox. Set that attribute to true and then assign the ToolTipText values on the ListView items.

这篇关于如何在Winform列表框项目上添加工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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