如何图像字段绑定到图片框在2008年VB.Net [英] How to bind Image field to PictureBox in VB.Net 2008

查看:286
本文介绍了如何图像字段绑定到图片框在2008年VB.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图像字段的表,我需要绑定到System.Windows.Forms.PictureBox,我需要加载新的影像O覆盖现有图像或删除图像INT与ADO.NET数据集对象的字段。

I have a table with image field that I need to bind to System.Windows.Forms.PictureBox, and I need to Load new images o Overwrite existing images or delete the image int the field with ADO.NET dataset object.

推荐答案

我在Form_Load事件写了这个code:

I wrote this code in the Form_Load Event :

Me.picCaptured.DataBindings.Add("Image", mbsPrimario, "PICFIELD", True, _
  Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)

和工作正常。

这篇关于如何图像字段绑定到图片框在2008年VB.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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