private void Form5_FormClosing(Object sender, FormClosingEventArgs e) { openFARForm = null; }
private void FindAndReplace() { Form5 newForm = new Form5(); openFARForm = newForm; openFARForm.btnFind.Click += new System.EventHandler(this.PressedNewFind); openFARForm.btnReplace.Click += new System.EventHandler(this.PressedReplace); openFARForm.btnReplaceAll.Click += new System.EventHandler(this.PressedReplaceAll); openFARForm.Show(); openFARForm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form5_FormClosing); }