change listviewitem tooltip to balloon

放肆的年华 提交于 2019-12-11 10:31:56

问题


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;

but how do i do this for a listview item


回答1:


You can manually show ToolTip when mouse is over certain item

check this article




回答2:


There isn't an easy way to change the tooltip on a ListView. See this blog for a detailed explanation of why.

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.

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)



来源:https://stackoverflow.com/questions/6159426/change-listviewitem-tooltip-to-balloon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!