How to position cursor at end of text in textbox?

D

Dean Slindee

On a tab control, when switching to the next tabpage, the data value in the
first text field located on that tabpage is generally highlighted with
reverse video.


This is annoying to the users. Is there any way to stop this behavior?

The field is selected, so the video is reversed. Is there a command that
will position the cursor at the end of any text than may be in the textbox.


The Tools|Options setting that should do this does not work on the first
textbox on a tabpage.

Thanks,

Dean S
 
R

ruralguy via AccessMonster.com

Try putting:
Me.YourControlName.SelStart = Me.YourControlName.SelLength

in the OnEnter event of the control. Using YourControlName of course.
 

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