Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am working with a richtextbox, but I do not know how to get the location of text in richtextbox cursor over the location of the form.
please, help me! Thank a lot!
Posted
Comments
DaveAuld 26-Feb-11 8:04am    
????Lost me......what are you trying to do? get the current text at the where of the what?

If you mean the vertical bar that indicate where your characters will go when you type, then you want the RichTextBox.CaretPosition[^] property
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Feb-11 11:27am    
The only correct answer here, my 5.
--SA
CS2011 27-Feb-11 3:04am    
mine too
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Feb-11 11:26am    
Did you real the answers in this block? Unfortunately, both are wrong. One merely shows SelectionStart, another one tries to show mouse position instead!
My advice would be removing this answer unless you can fix it to something new and useful.
Thank you for understanding.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900