示例#1
0
 private void ProductNameTextBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BatchNumberTextBox.Select();
     }
 }
示例#2
0
 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 = "";
     }
 }