C
Chuck Bowling
I have a problem I can't quite figure out. I want to trigger an event when
a some text is selected in a RichTextBox. When the selection is finished, I
want to mark the selected text and allow another selection. Text can be
selected two different ways; by double clicking a word or by clicking and
dragging. When I click and drag to paint the selection I mark it on the
MouseUp event. When double clicking, I catch the OnSelected event.
The problem is that double clicking causes the MouseUp event to fire. I
need to either disable the DoubleClick event in the text box or find a way
to fix the conflict between the two events. I would prefer to keep the
functionality of the double click event but if I have to I'll disable it.
Has anybody got a suggestion?
a some text is selected in a RichTextBox. When the selection is finished, I
want to mark the selected text and allow another selection. Text can be
selected two different ways; by double clicking a word or by clicking and
dragging. When I click and drag to paint the selection I mark it on the
MouseUp event. When double clicking, I catch the OnSelected event.
The problem is that double clicking causes the MouseUp event to fire. I
need to either disable the DoubleClick event in the text box or find a way
to fix the conflict between the two events. I would prefer to keep the
functionality of the double click event but if I have to I'll disable it.
Has anybody got a suggestion?