Calling a subroutine by clicking a link in a textbox.
Posted on 2002-07-08
I need to know how to create a hyperlink in a textbox (or richtextbox) that when clicked DOES NOT open a browser window, I would like it to call a subroutine instead with the clicked text as a parameter instead.
I also don't want the whole box clickable, or to call the routine, just a specfic word in the box.
For instance if the textbox contained, "Hello my name is Joe.", when the user clicks on Joe (which should be underlined and blue to look like a hyperlink) a subroutine would be called and "Joe" would be stored in the variable. BUT, clicking on any other word would do nothing.
Thanks for any help or suggestions in Advance,