简体   繁体   中英

How to bind Image field to PictureBox in VB.Net 2008

我有一个带有图像字段的表,需要将其绑定到System.Windows.Forms.PictureBox,并且需要加载新图像o覆盖现有图像或使用ADO.NET数据集对象将该图像删除到该字段中。

I wrote this code in the Form_Load Event :

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

and Work Ok.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM