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

依然范特西╮ 提交于 2019-12-13 06:32:17

问题


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.


回答1:


I wrote this code in the Form_Load Event :

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

and Work Ok.



来源:https://stackoverflow.com/questions/1638938/how-to-bind-image-field-to-picturebox-in-vb-net-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!