View Full Version : OnClick Text box that contains a date


Blkblts
01-08-2001, 06:34 AM
When I click in a text box that contains a formated date field the curser could be set in the begining middle or end of the field with the format of _/_/_ ... Is there anyway to use the On_Click event to left justify the curser so the user can start typing the date at the begining? It works fine when I tab into the field just not when I use the mouse and click.

Thanks
kim

ntp
01-09-2001, 05:08 AM
In your OnClick Event procedure add this code

me.txtYourTextControl.SelStart = 0


ntp

Blkblts
01-09-2001, 05:42 AM
Thanks that worked perfectly...

kim