如何在vb.net中的列表视图中显示图片 [英] How to picture in a listview in vb.net

查看:104
本文介绍了如何在vb.net中的列表视图中显示图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用sql 2008创建vb.net应用程序,我在表单中使用listviewcontrol,如果要从DB中提取"True",则希望在单独的列中显示特定图片,否则将显示其他图片.请咨询

hi i am creating a vb.net application with sql 2008, i m using a listviewcontrol in my form, i want to show a particular pic in a separate column if it pulls "True " from DB else a different pic. Please advice

推荐答案

我怀疑您可以使用datagrid或类似工具做得更好,但是使用listview时,您需要绘制单元格所有者来绘制您的在他们的形象.我会在该网站上搜索有关类似控件的文章,也许有人已经做过了,您可以重复使用它.
I suspect you''d do better with a datagrid, or similar, but a listview, you would need to make your cells owner drawn to draw your image in them. I''d search this site for articles on similar controls, perhaps someone has already done it and you can reuse it.


这篇关于如何在vb.net中的列表视图中显示图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆