Field: OnClick move cursor to start of field

morlan

Registered User.
Local time
Today, 15:38
Joined
Apr 23, 2003
Messages
143
One of my form fileds has an input mask of 00/00/0000.

The problem is when somebody clicks on the field and tries to type the date into the month part because thats where they clicked

What VB code do I use to make the blinking cursor move to the start of the field?


Cheerio
 
Code:
Private Sub txtYourTextBox_GotFocus()

    Me.txtYourTextBox.[b]SelStart[/b] = 1

End Sub
 
Mile-O-Phile said:
Code:
Private Sub txtYourTextBox_GotFocus()

    Me.txtYourTextBox.[b]SelStart[/b] = 1

End Sub

Cheers m8,


SelStart = 0 for the very start :)
 

Users who are viewing this thread

Back
Top Bottom