Is there a way to tell where the cursor is located in a
textbox at any given moment? I specifically need to know
where the cursor is located in the sentence the user is
currently typing. The CurLine property is great, but CurX
only tells me in pixels where I am relative to the whole
form, and of course it varies depending on the font you
use. I need to check as the user types if what they are
typing matches any autotext or autocorrect entries.

Thanks in advance for any help.

Re: Cursor position in textbox by Jonathan

Jonathan
Wed Jun 30 14:21:35 CDT 2004


"Randy Dod" <randyd@ameri-title.com> wrote in message
news:2369e01c45ed5$725b2f40$a601280a@phx.gbl...
> Is there a way to tell where the cursor is located in a
> textbox at any given moment? I specifically need to know
> where the cursor is located in the sentence the user is
> currently typing. The CurLine property is great, but CurX
> only tells me in pixels where I am relative to the whole
> form, and of course it varies depending on the font you
> use. I need to check as the user types if what they are
> typing matches any autotext or autocorrect entries.
>
> Thanks in advance for any help.

Hi Randy,

Take a look at the SelStart property which tells you the cursor position in
characters within the textbox.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup


Re: Cursor position in textbox by Randy

Randy
Wed Jun 30 15:07:54 CDT 2004

>Hi Randy,
>
>Take a look at the SelStart property which tells you the
cursor position in
>characters within the textbox.
>
>--
>Regards
>Jonathan West - Word MVP
>www.intelligentdocuments.co.uk
>Please reply to the newsgroup


Jonathan,
Thank you so much, that's just what I needed! I forgot
all about that property.