caret coordinates in a richtextbox (X,Y !)
For this i need the X Y coordinates of the caret in a richtextbox...
NOTE:
i do not need the line number and position of the caret but it's X Y coordinates.
any help would be apreciated.
Dim temp As Point = Me.RichTextBox1.GetPositionFromCharIndex(Me.RichTextBox1.SelectionStart) |
You may need to do some additional math as this gives a coordinate relative to the top left of the RichTextBox. It also does not seem to take into account the font size but it gives a good place to start.
Hope this helps.
Kris Langohr
Visual Basic QA