How can I set an icon for a ListViewSubItem?

前端 未结 7 683
既然无缘
既然无缘 2020-12-05 19:36

In a ListView you can have icons on each item.
When viewing in Details-mode, the icon is shown in the left-most column.

Can I show an icon in some other column?<

7条回答
  •  醉酒成梦
    2020-12-05 20:18

    Take a loot at this:

    http://social.msdn.microsoft.com/forums/en-US/winforms/thread/d25b4ffa-2ea4-43cd-a3ae-8dd0387197ae/

    In addition to the accepted answer, you should handle the DrawItem event as well, or it will not work.

提交回复
热议问题