private void mnuInsert_Click(object sender, EventArgs e) { try { frmProduct_Type f = new frmProduct_Type(); f.Form_Load(); f.op = "Add"; f.ShowDialog(); } catch { } }
private void cmbType_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) { txtCode.Focus(); } else if (e.KeyData == Keys.F12) { try { frmProduct_Type f = new frmProduct_Type(); f.Form_Load(); f.op = "Add"; f.ShowDialog(); Fill_Product_Type(); } catch { } } }