开发者

Add image in first column in list view C#

开发者 https://www.devze.com 2023-03-06 17:14 出处:网络
I have 7 column in my list view then i 开发者_JS百科want to add image in first column. How I can solve this problem.

I have 7 column in my list view then i 开发者_JS百科want to add image in first column. How I can solve this problem.

Thanks in advance


  • Add a ImageList control to your form.
  • Assign that ImageList to the ListView (there are properties for small/big icons)
  • Add your images to the ImageList (can happen dynamically)
  • Add the correct index to the ListViewItem's constructor (or set the icon later on).
0

精彩评论

暂无评论...
验证码 换一张
取 消