private void txtBranchID_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.F2: e.SuppressKeyPress = true; using (frmChiNhanh f = new frmChiNhanh()) { if (f.ShowDialog() == DialogResult.OK) { txtBranchID.Text = f.DVI_ID; } DesignForm.vForm = this; } break; } }
private void ItemMnuDanhMuc_CHINHANH_Click(object sender, EventArgs e) { frmChiNhanh callForm = new frmChiNhanh(); callForm.ShowDialog(); }