28-04-19, 02:54 AM
عزيزي
ربما الأمر يتعلق بـ Show بحيث تكون ShowDialog
تفضل التعديل على الكود السابق
كود :
Private Sub dgv1_CellDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles dgv1.CellDoubleClick
Try
Dim frm As New frm_sale
With dgv1
frm.invoices_id.Text = .CurrentRow.Cells(0).Value.ToString()
frm.invoices_date.Value = CDate(.CurrentRow.Cells(1).Value.ToString())
frm.cust_name.Text = .CurrentRow.Cells(2).Value.ToString()
frm.imploy_name.Text = .CurrentRow.Cells(4).Value.ToString()
frm.invoices_amount.Text = .CurrentRow.Cells(3).Value.ToString()
End With
frm.ShowDialog()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
