Select entire field

G

Guest

Hello,

I have an application that needs to have the keyboard set
to beginning of the field. I'm familiar with
the /tools/options method. My questions is; How is it
done programatically? Thank in advance for your help.

David S.
 
M

Marshall Barton

I have an application that needs to have the keyboard set
to beginning of the field. I'm familiar with
the /tools/options method. My questions is; How is it
done programatically?

Check Help for the SelStart and SelLen properties.

In the control's Enter event:

textbox.SelStart = 0
textbox.SelLen = Len(textbox)
 
G

Guest

Thank you Marsh, I appreciate the help.

David S.
-----Original Message-----


Check Help for the SelStart and SelLen properties.

In the control's Enter event:

textbox.SelStart = 0
textbox.SelLen = Len(textbox)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top