Per your request, I've taken a closer look at this thread. Not sure if
you're going to find my input useful at all. But you did ask. :)
JT wrote:
I want to disable the ability to launch an application that is
embedded in the text of a RichTextBox control.
Perhaps you could be more clear about what that means. Maybe for
someone who does RTF stuff all the time it's obvious, but I don't know
how you embed an application in the text of a RichTextBox control.
As is almost always the case, it would be helpful if you could provide a
concise-but-complete example of code that demonstrates the problem
you're having.
My second thought is that I'm not at all clear that disabling
double-clicking is going to be the right way to deal with this. It's
hard to say for sure, since I obviously don't really understand the
original problem anyway. But note that disabling double-clicking
generally for the control means that you not only have prevented some
specific behavior that (for some reason) you don't want, you also wind
up preventing other behavior that users will expect to work correctly.
This goes hand-in-hand with my previous comment about not playing cowboy
with generally accepted rules of UI design. :)
So, it might be worth exploring other ways to disable this behavior,
than the broad-reaching technique of disabling double-clicks altogether.
That said, it sure seems like it should be possible to disable
double-clicks. But without a good example of the situation you're
trying to prevent, it's difficult to comment on what techniques might work.
Pete