If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to position cursor at end of text in textbox?
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 |
#2
|
|||
|
|||
How to position cursor at end of text in textbox?
Try putting:
Me.YourControlName.SelStart = Me.YourControlName.SelLength in the OnEnter event of the control. Using YourControlName of course. Dean Slindee wrote: 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 -- HTH - RuralGuy (RG for short) acXP WinXP Pro Please post back to this forum so all may benefit. Message posted via http://www.accessmonster.com |
Thread Tools | |
Display Modes | |
|
|