private void txtNoteGHeader_Click(object sender, EventArgs e) { if (noteWindow == null) { noteWindow = new NoteWindow(note); noteWindow.FormClosed += new FormClosedEventHandler(noteWindow_FormClosed); noteWindow.Show(this); } else { noteWindow.Activate(); } }