RichTextBox设置链接源码
源码描述:
可以添加链接到RichTextBox
RichTextBox标准有一个相当方便的属性:DetectUrls。
当设置这个属性,每次RichTextBox改变文本,文本解析url和匹配的文本范围的链接(下划线,蓝色前台默认情况下)。问题是,只有链接从一个公认的协议(http:, file:, mailto:, ftp:, https:, gopher:, nntp:, prospero:, telnet:, news:, wais:, outlook)。当你不想要这样一个参考,你被难住了,因为标准RichTextBox不允许手动设置的链接样式。此源码示例教您给RichTextBox插入链接
Fortunately, the .NET RichTextBox is only a wrapper around the Win32 RichEdit control, and so its functionality can be extended by adding the necessary wrappers to send the messages the RichEdit control needs.
上传者:xiaohan05202 作者:mav.northwind
源码下载及讨论地址:http://www.51aspx.com/Code/RichTextBoxLinks
相关内容变更请以51Aspx官方网站最终显示为准
本源码由51aspx调测并整理
商业版资源请在作者或者51Aspx授权范围内使用,否则后果自负!
如需转载免费版请注明作者信息及来源,以示对他人劳动成果的尊重!
获得更有效最新的帮助技术支持看这里:http://www.51aspx.com/help
╭═══════════════╮
║ .Net源码专业站 ║
╭══════┤ http://www.51aspx.com ├══════╮
║ ║ 论坛:http://bbs.51aspx.com ║ ║
║ ╰═══════════════╯ ║
║ ║
║51Aspx声明: ║
║ 1) 本站不保证所提供软件或程序的完整性和安全性。 ║
║ 2) 转载本站提供的资源请勿删除本说明文件。 ║
║ 3) 本站源码为网上搜集或网友提供,如果涉及或侵害到您的版║
║ 权,请立即通知我们。 ║
║ 4) 本站提供免费代码只可供研究学习使用,切勿用于商业用途║
║ 由此引起一切后果与本站无关。 ║
║ 5) 商业源码请在源码授权范围内进行使用! ║
║ ║
║ 51Aspx —— .Net源码服务专家 ║
║ 联系方式 : support@51aspx.com ║
║ ╭──────────────────────╮ ║
╰══┤ .Net源码专业站 http://www.51aspx.com ├══╯
╰───────────────────────╯
友情提示:
一般数据库文件默认在DB_51aspx文件夹下
更多使用帮助和协议请浏览http://www.51aspx.com/help
没有合适的资源?快使用搜索试试~ 我知道了~
RichTextBox设置链接源码
共40个文件
dll:5个
pdb:5个
cs:4个
4星 · 超过85%的资源 需积分: 9 11 下载量 62 浏览量
2013-12-24
17:10:12
上传
评论
收藏 77KB RAR 举报
温馨提示
可以添加链接到RichTextBox RichTextBox标准有一个相当方便的属性:DetectUrls。 当设置这个属性,每次RichTextBox改变文本,文本解析url和匹配的文本范围的链接(下划线,蓝色前台默认情况下)。问题是,只有链接从一个公认的协议(http:, file:, mailto:, ftp:, https:, gopher:, nntp:, prospero:, telnet:, news:, wais:, outlook)。当你不想要这样一个参考,你被难住了,因为标准RichTextBox不允许手动设置的链接样式。此源码示例教您给RichTextBox插入链接
资源推荐
资源详情
资源评论
收起资源包目录
RichTextBoxLinks.rar (40个子文件)
RichTextBoxLinks
bin
Release
RichTextBoxLinks.dll 20KB
Debug
RichTextBoxLinks.dll 20KB
RichTextBoxLinks.pdb 16KB
RichTextBoxLinks.suo 23KB
UpgradeLog.XML 2KB
_UpgradeReport_Files
UpgradeReport.xslt 12KB
UpgradeReport_Minus.gif 69B
UpgradeReport.css 3KB
UpgradeReport_Plus.gif 71B
RichTextBoxLinks.csproj.user 2KB
obj
Debug
RichTextBoxLinks.dll 20KB
RichTextBoxLinks.pdb 16KB
DesignTimeResolveAssemblyReferencesInput.cache 5KB
TempPE
RichTextBoxLinks.csproj.FileListAbsolute.txt 595B
RichTextBoxLinks.csproj 5KB
from.gif 5KB
RichTextBoxLinks.sln 1KB
AssemblyInfo.cs 2KB
TestApp
bin
Release
RichTextBoxLinks.dll 20KB
TestApp.exe 20KB
Debug
RichTextBoxLinks.dll 20KB
RichTextBoxLinks.pdb 16KB
TestApp.pdb 14KB
TestApp.exe 20KB
TestApp.vshost.exe 11KB
obj
Debug
TestApp.pdb 14KB
TestApp.exe 20KB
TestApp.csproj.FileListAbsolute.txt 977B
DesignTimeResolveAssemblyReferencesInput.cache 5KB
ResolveAssemblyReference.cache 4KB
TempPE
TestApp.Form1.resources 180B
AssemblyInfo.cs 2KB
Form1.cs 4KB
Form1.resx 6KB
TestApp.csproj.user 2KB
TestApp.csproj 6KB
App.ico 1KB
RichTextBoxEx.cs 9KB
51Aspx源码必读.txt 3KB
最新Asp.Net源码下载.url 123B
共 40 条
- 1
资源评论
- 杨门剑侠2014-07-16有点启发,谢谢分享
luckly05
- 粉丝: 4
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功