C# Richtext box MouseOver
How to get the MouseOver
text in a RichTextBox
.
I have tried using GetCharIndexFromPosition
by passing it the cursor location. But it is always giving me the index of a character which is close to the mouse location, even if I am moving the mouse onto the RichTextBox
(开发者_运维百科empty space) it is giving some character index which is closer to the mouse location.
Thanks username. I am able to solve the problem. As you said am comparing the position from char index and actual mouse position. Calculating charcter size using rich text box graphics and adding it to the position of character.
精彩评论