Numeric Up/Down Control - Select all text
Posted on 2006-10-23
I'm using a Numeric Up/Down control and have managed to get the application to select all text when the focus passes to the control at run time. With normal text boxes this is easily achieved with a .SelectAll function. With the Numeric Up/Down control I have achieved it using the following code:
' Select all text.
I now want to have all text selected when I increase of decrease the value using the up/down buttons but cannot get it to work. I used the above code in the _ValueChanged sub but only a flash of the selection occured when I tried it out.
Is there another way I can do this?