I'm writing a program where I'd like to have the user be able to click/double-click in a textbox, which will bring up a form. This new form queries the textbox about what text was clicked on.
I was using a normal textbox, and that was fine. I used the double-click event, and then queried SelText because words are highlighted when you double-click on them.
However, now I want to switch from a standard textbox to a richtextbox, and am running into some problems. Rich text boxes highlight text when you double-click them, but that seems to happen after the double_click event is processed, so when I query it, its blank unless I manually selected some text.
Anyone have any other ways on how to determine what word is being clicked on?