private void menuCopy_Click(object sender, EventArgs e) { DoInActiveTextBox(ctrl => { if (ctrl.SelectionLength > 0) { ctrl.Copy(); } }); }