且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

图像应在ListViewItem中显示为灰色

更新时间:2023-01-26 20:27:31

试试这个:add将灰色图像添加到分配给列表视图的图像列表中,然后更改相应 ListViewItem
ImageIndex ImageKey 属性。 /跨度>


ImageList is assigned to ListViewItems. When ListViewItem is selected, we need to grayout the image.

In the above image, 2nd list view item, the image was grayed out. How can this be done in C# or VB .net?


Santhosh Jakka

Try this: add a greyed image to the image list assigned to List View, then change the ImageIndex or ImageKey property of the corresponding ListViewItem.