tags:

views:

53

answers:

1

I have a RichTextBox. When I select words in the text box, the text actually selected jumps to include other characters that I have not moved the mouse over.

This is particularly annoying when I have XML in my text box. I try to grab the beginning tag, and Windows (or the RichTextBox control) also grabs the close angle-bracket tag from the previous tag.

Is there a setting on the RichTextBox control or in my application that I can set that will turn off this too-smart behavior?

A: 

The solution to the "RichTextBox Selection problem" described in http://stackoverflow.com/questions/3678620/c-richtextbox-selection-problem also solved my issue.

I think the question I asked should remain to help others find the correct solution.

Thanks, Hans for pointing me to the solution.

aaaa bbbb