开发者

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

开发者 https://www.devze.com 2022-12-09 13:16 出处:网络
I have a table with image field that I need to bind to System.W开发者_如何学Goindows.Forms.PictureBox, and I need to Load new images o Overwrite existing images or delete the image int the field with

I have a table with image field that I need to bind to System.W开发者_如何学Goindows.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.


I wrote this code in the Form_Load Event :

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

and Work Ok.

0

精彩评论

暂无评论...
验证码 换一张
取 消