从DataGridView到VB.NET中的PictureBox的图像 [英] Image from DataGridView to PictureBox in VB.NET
本文介绍了从DataGridView到VB.NET中的PictureBox的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在VB.NET中从事图像处理项目.这样,我可以从文件夹浏览图像并将其显示在PictureBox中.之后,我存储这些图片以从数据库访问.我正在使用DataGridView
控件.但是在编译过程中,图像框上未显示图像.图像框不可见.它显示``处理了空异常''.我想给什么编码? div class ="h2_lin">解决方案
兰迪森
为了防止重复,在表(保存图像信息的位置)中有两列(例如OriginalFileName和GeneratedFileName).上传图像时,将图像名称更改为GUID(或任何自动生成的ID),然后将此GUID保存在GeneratedFileName列下,并将Original File Name保存在OriginalFileName列下.
希望我回答了您的问题.
谢谢
潘纳(Panneer Selvam)J
I am working on an image processing project in VB.NET. In that, I can browse images from a folder and display them to a PictureBox. After that, I store those pictures to access from the database. I am using the DataGridView
control.but during compilation,image did not displaying on the picture box.the picture box was invisible.it shows ''null exception handled''.what may be the coding do i want to give?
解决方案
Hi Randyson
For preventing the duplication have two columns (say OriginalFileName & GeneratedFileName) in the table (where you save the image information). When you upload the image change the image name to a guid (or any auto-generated Id) save this guid under GeneratedFileName Column & Original File Name under OriginalFileName Column.
Hope i have answered for your Question.
Thanks
Panneer Selvam J
这篇关于从DataGridView到VB.NET中的PictureBox的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文