private void button1_Click(object sender, EventArgs e) { HookManager.KeyPress -= new KeyPressEventHandler(HookManager_KeyPress); tTextReplace = new TextReplacements(); tTextReplace.tTextboxContents = tTextboxContents; tTextReplace.FormClosed += new FormClosedEventHandler(tTextReplace_FormClosed); tTextReplace.TopMost = true; tTextReplace.Show(); }