Question Display A Picture From Database

Razvancb

New member
Joined
Jan 21, 2016
Messages
3
Programming Experience
Beginner
Hello guys.
Theres what i want to do:

I have a datagridview and when i click there it opens another form with the information that is inside the datagridview.

Resized to 60% (was 834 x 574) - Click image to enlarge
6kOsGqD.png



What i want to do is, in my ACCESS database i have OLE Object with a picture (bitmap) and i want to display that in the form "info" too.

This is the code that i have to get the info when i click in the datagridview:

Private Sub DataGridView1_RowHeaderMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.RowHeaderMouseClick

Dim curForm As Form = New Form
With curForm
info.TextBox1.Text = DataGridView1.SelectedRows(0).Cells(1).Value
info.TextBox2.Text = DataGridView1.SelectedRows(0).Cells(2).Value
info.TextBox3.Text = DataGridView1.SelectedRows(0).Cells(3).Value
info.TextBox4.Text = DataGridView1.SelectedRows(0).Cells(4).Value
info.TextBox5.Text = DataGridView1.SelectedRows(0).Cells(5).Value


info.Show()
End With

End Sub



If you need some another info just ask!
I really appreciate help!
Thank you
 
Last edited:

Latest posts

Back
Top