PHP كود :
Try
Dim dg As Integer = TextBox1.Text
Dim dg2 As Integer = TextBox2.Text
If dg = "" Or dg = 0 Then
MsgBox("اضف الكمية")
Exit Sub
Else
If Val(dg) > Val(dg2) Then
MsgBox("الكمية المطلوبة اكثر من الموجودة في المخزون ")
Else
Form2.DataGridView1.CurrentRow.Cells(2).Value = dg
Form2.DataGridView1.AllowUserToAddRows = True
Close()
End If
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try

