private void toolStripMenuItemEditCopy_Click(object sender, EventArgs e) { if (this.treeView.ContainsFocus) { this.ClipboardCopy(false); } else if(this.textBoxHTML.Focused) { this.textBoxHTML.Copy(); } }