RichTextBox 控件,制作非 URL 超链接? [英] RichTextBox control, making non-URLs hyperlinks?

查看:23
本文介绍了RichTextBox 控件,制作非 URL 超链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在富文本框中,我看到有 DetectURLs 和一个与之相关的事件......

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

有没有办法设置一个词或一系列词作为超链接,即使它们不是超链接?我的具体用途是我正在编写一个自动收报程序,该程序将在屏幕底部滚动信息,我希望某些信息可以点击而无需放置目标的长而杂乱的 URL.无论如何我能做到吗?

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?

推荐答案

在 RichTextBox 中链接任意文本
http://www.codeproject.com/文章/9196/Links-with-arbitrary-text-in-a-RichTextBox

这篇关于RichTextBox 控件,制作非 URL 超链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆