I want to select the available value within the numeric up/down control using c#
and in general if we double click within the control then we get the following(the entire text gets selected colored Blue in BG)
Now my question is How do I achieve this pro-grammatically??
My trails so far :
Focus();
Select();
this doesn't seem to work, any help on this regard would be much appreciated, Thanks..:)
Select
has an overload that takes two int
, one for selection start, one for selection length:
myNumericUpDown.Select(0, myNumericUpDown.Text.Length);