|
-
Feb 5th, 2007, 05:36 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Finding Current Cursor Position in Textbox?
How do you determine the cursor's current position in a textbox?
-
Feb 5th, 2007, 06:15 PM
#2
Re: Finding Current Cursor Position in Textbox?
You use the SelectionStart and SelectionLength properties. If no text is selected then SelectionLength will be zero.
-
Feb 5th, 2007, 07:07 PM
#3
Thread Starter
Addicted Member
Re: Finding Current Cursor Position in Textbox?
Thanks. I thought I had read somewhere that this (and similar properties) wasn't available in .NET--that it was from VB6. I was wrong...
-
Feb 5th, 2007, 07:11 PM
#4
Re: [RESOLVED] Finding Current Cursor Position in Textbox?
Had you looked at the member listing for the TextBox class in the MSDN library you would have seen otherwise.
-
Feb 5th, 2007, 07:16 PM
#5
Thread Starter
Addicted Member
Re: [RESOLVED] Finding Current Cursor Position in Textbox?
-
Feb 5th, 2007, 07:33 PM
#6
Re: [RESOLVED] Finding Current Cursor Position in Textbox?
And I strongly disagree and reiterate that to assume it's too hard and not bother is a good way to never get better.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|