private void inputControl_SelectAllText(object sender, EventArgs e) { if (sender is TextBoxBase) { ((TextBoxBase)sender).SelectAll(); } else if (sender is UpDownBase) { UpDownBase udb = (UpDownBase)sender; udb.Select(0, 2); } }
private void numpreco_Click(object sender, EventArgs e) { UpDownBase udb = numpreco; udb.Select(0, udb.Text.Length); }