Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm working on a windows mobile application and added a numericupdown control.

When get focused it places the cursor at the beginning of the control. What I need is to focus the full text to replace the value with new entered value.

I found in some forums to use
NumericUpDown1.Select(0, NumericUpDown1.Text.Length);


But application does not compile and send the error:
"No overload for method 'Select' takes '2' arguments"

What to do?
Posted
Updated 27-Jan-12 4:03am
v2
Comments
Richard MacCutchan 27-Jan-12 10:14am    
Look at the MSDN documentation for the class to see why this overload does not exist.

1 solution

Well, I found a solution for those with the same situation:

The control does not have that function available for windows mobile, but you can use this great code

http://blog.markarteaga.com/SelectingControlText.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900