19-02-19, 11:54 AM
ضع هذه المتغيرات في مديول :
ثم ضعها في كودك :
و استدعها من أي نافذة تريد :
PHP كود :
public CustomerID as integer
public CustomerName as string
public CustomerAddress as string
public CustomerPhone as string
ثم ضعها في كودك :
PHP كود :
With DataGridView1
CustomerID = .CurrentRow.Cells("CustomerID").Value.ToString()
CustomerName = .CurrentRow.Cells("CustomerName").Value.ToString()
CustomerAddress = .CurrentRow.Cells("CustomerAddress").Value.ToString()
CustomerPhone = .CurrentRow.Cells("CustomerPhone").Value.ToString()
End With
و استدعها من أي نافذة تريد :
PHP كود :
CustomerID.Text = CustomerID
CustomerName.Text = CustomerName
CustomerAddress.Text = CustomerAddress
CustomerPhone.Text = CustomerPhone
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر