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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top