private void btnAdd_Click(object sender, EventArgs e) { frmTKAOrder frm = new frmTKAOrder(); isCancel = 0; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Cancel) { isCancel = 1; } }