开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜