I have a link in a richtextbox in C#. When I right on a url link, I want to show a menu. if it is not a url, then I do not want to show anything. Right now I am tapping into the mouse down event and selecting the line based on the mouse pointer position and if the selected line is a valid url, I show the menu. it works great, but when I have some text next to the url, still the line is detected as a valid url and the menu appears. Also I am unable to tap into the mouse changed event as well. Any ideas on how I could accomplish what I am trying to do?
Thanks,
Not sure if this is what you are looking for, but I believe that you’ll find better than this
You may try this when the MouseDown is called
Or this when a Link is Clicked, but this won’t apply for Mouse Right-Click
Thanks,
I hope this helps 🙂