Rich Text Box Double Click

  • Thread starter Thread starter Timmy Lajaunie
  • Start date Start date
T

Timmy Lajaunie

Hello all,

I noticed that the rich text box that is included with the .NET
frameword does not have a way to catch or force a double click on the
control. Can anyone shed some light on how I would make the control think
it received a double-click where the caret is? I already know how to get
the caret position.

Basically I want to do the following:
1. Set the control to hide the selection
2. *Select the current word by a double click
3. Color the word if it matches one in a pre-defined hash table
4. Reset the caret position to it's original location before the
select (thus de-selecting the word)
5. Restore selection visibility

Thanks!

Timmy
 
Back
Top