Type over default text in text box

livvie

Registered User.
Local time
Today, 04:30
Joined
May 7, 2004
Messages
158
I have a text box with a default 0 when the user clicks in the box and types the text us entered before the 0 I need it to be typed over the 0 thus replacing it. I know there is a way to do this using fill from left or right but for the life of me I cannot remember how or where I found it before.
 
Livvie,

Tools --> Options --> Keyboard Tab --> Select EntireField

That will set it for ALL fields.

For an individual field, you can use the GotFocus event and put:

Me.YourControl.SelStart = 0
Me.YourControl.SelLength = 1

Wayne
 
WayneRyan said:
Livvie,

Tools --> Options --> Keyboard Tab --> Select EntireField

That will set it for ALL fields.

For an individual field, you can use the GotFocus event and put:

Me.YourControl.SelStart = 0
Me.YourControl.SelLength = 1

Wayne

Perfect Wayne Thanks
 

Users who are viewing this thread

Back
Top Bottom