Private Sub DataGridView1_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick With ACC_REG .storeCode.Text = DataGridView1.CurrentRow.Cells(0).Value .usr1.Text = DataGridView1.CurrentRow.Cells(1).Value .password1.Text = DataGridView1.CurrentRow.Cells(2).Value .storeName.Text = DataGridView1.CurrentRow.Cells(3).Value Dim bytes As [Byte]() = DataGridView1.CurrentRow.Cells(4).Value Dim ms As New MemoryStream(bytes) .PictureBox1.Image = Image.FromStream(ms) .addbtn.Enabled = False .storeCode.ReadOnly = True .ShowDialog() End With End Sub
CurrentRow
.Cells(4)
0
3
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)