private void findToolStripMenuItem_Click(object sender, EventArgs e) { if (findForm == null) { findForm = new FindForm(textLog); findForm.Disposed += new EventHandler(findForm_Disposed); } findForm.Show(this); }
void findForm_Disposed(object sender, EventArgs e) { findForm = null; }