RichTextBox control, making non-URLs hyperlinks?

偶尔善良 提交于 2019-12-01 00:59:11

问题


In a richtextbox I see there's DetectURLs and an event to go along with that...

Is there a way to set up a word or series of words to act as a hyperlink even though they are not a hyperlink? My specific use is that I'm writing a ticker program that will scroll information across the bottom of the screen, I would like for some information to be clickable without putting the long, messy URL of the target. Anyway I can do this?


回答1:


Links with arbitrary text in a RichTextBox
http://www.codeproject.com/Articles/9196/Links-with-arbitrary-text-in-a-RichTextBox



来源:https://stackoverflow.com/questions/1526857/richtextbox-control-making-non-urls-hyperlinks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!