改变ListViewItem的提示气球 [英] change listviewitem tooltip to balloon
问题描述
有一个简单的方法来设置一个ListView项的工具提示属性为气球?通常,所有我会做的是:
is there a simple way to set the tooltip property of a listview item to be a balloon? Typically all i would do is:
Tooltip tt = new Tooltip("This is a tooltip");
tt.isBalloon = true;
但我怎么做到这一点的ListView项
but how do i do this for a listview item
推荐答案
有没有一种简单的方法来改变一个ListView的提示。请参见这个博客为什么的详细说明。
There isn't an easy way to change the tooltip on a ListView. See this blog for a detailed explanation of why.
ObjectListView - 围绕一个标准的WinForms一个开源包装ListView控件 - 为你做的工作合理数量的,这样就可以显示出对你的一部分最小的努力强化工具提示
ObjectListView -- an open source wrapper around a standard WinForms ListView -- does a reasonable amount of work for you so that you can show enhanced tool tips with minimal effort on your part.
即使你不想使用ObjectListView,你仍然可以看一下code,看看它是如何做(当然,在工具提示的情况下,有做了很多工作,它会是棘手的提取工作到另一个项目)
Even if you don't want to use ObjectListView, you can still look at the code to see how it is done (admittedly, in the case of tool tips, there was a lot of work done and it would be tricky to extract that work into another project)
这篇关于改变ListViewItem的提示气球的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!