Jump to first character when selecting controls (1 Viewer)

BadScript

Registered User.
Local time
Today, 07:17
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?
 

missinglinq

AWF VIP
Local time
Today, 10:17
Joined
Jun 20, 2003
Messages
6,420
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
 

BadScript

Registered User.
Local time
Today, 07:17
Joined
Oct 30, 2007
Messages
73
Thanks thanks thanks! *2 thumbs up*

Finally my little project is going somewhere :D
 

BadScript

Registered User.
Local time
Today, 07:17
Joined
Oct 30, 2007
Messages
73
This method doesn't work on combos though, is this possible for combos as well?
 

Users who are viewing this thread

Top Bottom