开发者

how to place the imagekey to the right side of the listview

I am trying to add an image开发者_如何学编程key to my items and it works fine except that the image

appears on the leftside of the listview in vb.net.

What I am trying to do is have it appear on the right side or in another column,

but I can't seem to do that.

can anyone help?

Thanks

Gibit


I assume you want to have an image in some other column when the listview is in Detail mode. You can't do that in the standard .NET listview control by default. I believe you would need to override a bunch of drawing-related events and possibly deal with some Win32 calls to have images show in subitems.

However, there is an open source custom listview control for .NET called ObjectListView that supports this feature. You could use that instead of the built-in one.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜