private void cBoxSupplier_MouseDown(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) { po.supplier_name = cBoxSupplier.Text; txtBoxSupplierCode.Text = po.askSupplierCode(); } }
private void txtBoxSupplierName_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { po.supplier_name = txtBoxSupplierName.Text; txtBoxSupplierCode.Text = po.askSupplierCode(); checkifTheSame(); } }