Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving cursor position in a textbox

Status
Not open for further replies.

Enkay62

Programmer
Sep 5, 2003
78
IT
Hello.
Here's my problem.
I need to know where the cursor is in a multiline textbox that contains text.
I mean: if tbox contains "Good morning" and the cursor is between "o" and "d" of "Good", i should retrieve an integer number 4 ( or 3 if count starts from zero). I'm not sure about what I'm saying; I'm assuming that the way of counting is the same as selstart property.....
I tried to find a possible way but unsuccessfully.
Is there anybody who can give me a suggestion?
Thanks in advance.
Regards.
Nick.
 
>the SelectionStart property

Er...that's VB.NET; we're in the VBA forum...

I'm with SonOfEmidec on this one: what is wrong with SelStart?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top