Private Sub mtbBarcode_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles mtbBarcode.KeyDown
If (e.KeyCode = Keys.Enter) Then
If mtbBarcode.Text = "" Or mtbBarcode.MaskFull = False Then
MessageBox.Show("กรุณากรอกหมายเลขให้ครบ", "ผลการตรวจสอบ", MessageBoxButtons.OK, MessageBoxIcon.Warning)
Exit Sub
End If
SearchMonitoringProductsForm()
End If
End Sub