Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select all text in Winforms NumericUpDown upon tab in?

When the user tabs into my NumericUpDown I would like all text to be selected. Is this possible?

like image 503
Aidan Ryan Avatar asked Feb 20 '09 20:02

Aidan Ryan


1 Answers

private void NumericUpDown1_Enter(object sender, EventArgs e) {     NumericUpDown1.Select(0, NumericUpDown1.Text.Length); } 

(Note that the Text property is hidden in Intellisense, but it's there)

like image 84
Jon B Avatar answered Oct 04 '22 11:10

Jon B