如何将图像键放置在列表视图的右侧
我正在尝试将图像密钥添加到我的项目中,除了图像之外,它工作正常
出现在vb.net中列表视图的左侧。
我想做的是让它出现在右侧或另一列中,
但我似乎无法做到这一点。
有人可以帮忙吗?
谢谢
吉比特
I am trying to add an imagekey 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设当列表视图处于详细模式时,您希望在其他列中显示图像。默认情况下,您无法在标准 .NET 列表视图控件中执行此操作。我相信您需要重写一堆与绘图相关的事件,并可能处理一些 Win32 调用以使图像显示在子项中。
但是,.NET 有一个名为 ObjectListView 的开源自定义列表视图控件,它支持这个功能。您可以使用它来代替内置的。
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.