Jump to first character when selecting controls

BadScript

Registered User.
Local time
Today, 15:03
Joined
Oct 30, 2007
Messages
73
Does anybody know if it is possible to let the cursor jump to the first character in a textbox and combobox when you select these controls with the mouse?
 
Code:
Private Sub YourTextBoxName_Click()
   Me.YourTextBoxName.SelStart = 0
End Sub

BTW, this is crucial if you use Input Masks! If the user clicks into a field with an mask and starts typing, without noticing that they've clicked in the middle of the field, they have to waste time starting all over again!

Linq
 
Thanks thanks thanks! *2 thumbs up*

Finally my little project is going somewhere :D
 
This method doesn't work on combos though, is this possible for combos as well?
 

Users who are viewing this thread

Back
Top Bottom