Visual Basic 2010 with link to access with images
Good Morning, I'm doing a school project in Visual Basic 2010 with the link to an Access Database on Football. But I want to do something more complex and include images in the players, unfortunately I am quite difficult in this, the type of data that I put in the database is OLE object In Visual Basic I have a PictureBox with an OpenFileDialong with this Code:
Try
OpenFileDialog1.Title = "Abrir Imagem"
OpenFileDialog1.FileName = "Imagens"
OpenFileDialog1.Filter = "All Files |*.*"
OpenFileDialog1.ShowDialog()
ImgLigaPictureBox.Image =
System.Drawing.Image.FromFile(OpenFileDialog1.FileName)
Catch ex As Exception
'Do nothing End Try
End Try
This code allows you to fetch the image on the computer, I wanted that now that the image was saved through a querie. I don't know if this is possible, if anyone can help.
0