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.

Was it helpful?

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
scroll top