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