private void Form4_FormClosing(Object sender, FormClosingEventArgs e) { openFindForm = null; }
private void Find() { Form4 newForm = new Form4(); openFindForm = newForm; openFindForm.btnFind.Click += new System.EventHandler(this.PressedFind); newForm.Show(); openFindForm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form4_FormClosing); }