|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Changing cursor location in a text box
When I click on an empty text box the cursor automatically jumps to the far left of the box no matter what part of the box I click on(which is what I want). However, when there is an input mask in the box, the cursor goes right to where I click in the box (and I have to manually move the cursor to the beginning of the string). How can I click on a text box with an input mask and have the cursor go to the far left (i.e. the beginning of the input string)???
-mh |
|
#2
|
|||
|
|||
|
Put the following line into the Click event for the text box.
SendKeys "{HOME}" This will send the Home key to the active window. It will not select the contents of the text box. If you want to do that you can use the following. SendKeys "{END}+{HOME}" Stev |
|
#3
|
|||
|
|||
|
Thanks! That works perfectly. I knew there had to be a simple way to do that.
-mh |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Changing cursor location in a text box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|