How to bind Image field to PictureBox in VB.Net 2008
-
08-07-2019 - |
Question
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.
Solution
I wrote this code in the Form_Load Event :
Me.picCaptured.DataBindings.Add("Image", mbsPrimario, "PICFIELD", True, _
Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)
and Work Ok.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow