private void ProductNameTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { BatchNumberTextBox.Select(); } }
private void SupplierNameTextBox_Leave(object sender, EventArgs e) { if (!nameSupplier.Contains(SupplierNameTextBox.Text)) { MessageBox.Show("Supplier tidak ada dalam database", "Maaf"); BatchNumberTextBox.Select(); BatchNumberTextBox.Text = ""; } }