private void picBox_ppt_Click(object sender, EventArgs e) { if (checkBoxAskMe.Checked == true) { if (copy == "1") { if (ppt == null) { ppt = new uploadPPT(""); //f2.MdiParent = this; ppt.FormClosed += new FormClosedEventHandler(ppt_FormClosed); ppt.ShowDialog(); } else { ppt.Activate(); } } else { MessageBox.Show("You are not using full version of PIA Utility App", "PIA Utility Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { MessageBox.Show("Please Connect Pendrive with Utility app first", "PIA Utility Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
void ppt_FormClosed(object sender, FormClosedEventArgs e) { ppt = null; //throw new NotImplementedException(); }