Private Sub DataGridView1_CellMouseClick(ByVal sender As Object, ByVal e As _ System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseClick cmd = New SqlCommand("select photo from Information where name='" & _ DataGridView1.CurrentRow.Cells(0).Value() & "'", con) Dim imageData As Byte() = DirectCast(cmd.ExecuteScalar(), Byte()) If Not imageData Is Nothing Then Using ms As New MemoryStream(imageData, 0, imageData.Length) ms.Write(imageData, 0, imageData.Length) PictureBox1.BackgroundImage = Image.FromStream(ms, True) End Using End If GroupBox2.SendToBack() GroupBox2.Visible = False Label1.Visible = True Label1.Text = DataGridView1.CurrentRow.Cells(0).Value() End Sub