From: DavidP on
Is there a way, when you tab into a textbox, to move the cursor to the end of
the line, such that the text in the box is not highlighted.

I've experimented w/ selstart but w/out success.
From: Gordon Bentley-Mix on
AFAIK, it's not possible to force the cursor position to the end of the
text, but you can stop it from selecting the text. Look at the
..EnterFieldBehavior property of the TextBox. If you set this property to
fmEnterFieldBehaviorRecallSelection, it will set the cursor to the same
place it was when the TextBox last had focus. Perhaps not perfect (and I
haven't had the chance to experiment with it fully so I don't know how it
will behave under all circumstances), but better than nothing.
--
Cheers!

Gordon Bentley-Mix

"DavidP" <DavidP(a)discussions.microsoft.com> wrote in message
news:BD52F92D-C784-4917-9BC8-B6E3A3FC6FFB(a)microsoft.com...
> Is there a way, when you tab into a textbox, to move the cursor to the end
> of
> the line, such that the text in the box is not highlighted.
>
> I've experimented w/ selstart but w/out success.

From: DavidP on
Thank you, that works. I never even noticed that property before.

"Gordon Bentley-Mix" wrote:

> AFAIK, it's not possible to force the cursor position to the end of the
> text, but you can stop it from selecting the text. Look at the
> .EnterFieldBehavior property of the TextBox. If you set this property to
> fmEnterFieldBehaviorRecallSelection, it will set the cursor to the same
> place it was when the TextBox last had focus. Perhaps not perfect (and I
> haven't had the chance to experiment with it fully so I don't know how it
> will behave under all circumstances), but better than nothing.
> --
> Cheers!
>
> Gordon Bentley-Mix
>
> "DavidP" <DavidP(a)discussions.microsoft.com> wrote in message
> news:BD52F92D-C784-4917-9BC8-B6E3A3FC6FFB(a)microsoft.com...
> > Is there a way, when you tab into a textbox, to move the cursor to the end
> > of
> > the line, such that the text in the box is not highlighted.
> >
> > I've experimented w/ selstart but w/out success.
>