Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2004

Tip: Looking for answers? Try searching our database.

Cursor position in textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Randy Dod - 30 Jun 2004 20:07 GMT
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.
Jonathan West - 30 Jun 2004 20:21 GMT
> Is there a way to tell where the cursor is located in a
> textbox at any given moment?  I specifically need to know
[quoted text clipped - 6 lines]
>
> 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.

Signature

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

Randy Dod - 30 Jun 2004 21:07 GMT
>Hi Randy,
>
>Take a look at the SelStart property which tells you the cursor position in
>characters within the textbox.

Jonathan,
Thank you so much, that's just what I needed!  I forgot
all about that property.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.