惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tenable Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Google Online Security Blog
Google Online Security Blog
T
Threat Research - Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
W
WeLiveSecurity
NISL@THU
NISL@THU
V
Vulnerabilities – Threatpost
V2EX - 技术
V2EX - 技术
Cisco Talos Blog
Cisco Talos Blog
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
量子位
Security Archives - TechRepublic
Security Archives - TechRepublic
Microsoft Azure Blog
Microsoft Azure Blog
F
Fortinet All Blogs
H
Hacker News: Front Page
D
Docker
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
Kaspersky official blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
S
Security Affairs
博客园 - 聂微东
AI
AI
Latest news
Latest news
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Engineering at Meta
Engineering at Meta
Cloudbric
Cloudbric
S
Secure Thoughts
Spread Privacy
Spread Privacy
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

博客园 - cncxz(虫虫)

在.NET环境下为网站增加IP过滤功能 推荐几个基于.net的cms系统 超赞的10个Windows Live Writer插件 发布ASP.NET应用程序时的10个好习惯(转) 一个基于web的pdf浏览器 ajax跨域访问代理文件下载(asp、php、asp.net) jQuery UI 1.0 已于2007-9-16日正式发布 Visual Studio插件大搜索(60+) 推荐一批基于web的开源html文本编辑器(40+) 终结IE6下背景图片闪烁问题 一个web应用程序统计在线用户列表的东东(带c#源码) 中了网络流氓www.e-jok.cn的招 使用 javascript 标记高亮关键词 Div+Css酷站一箩筐 在win2k3上使用卡巴斯基6.0 发布控件Express.NET.WindowsForms运行时的本地化补丁 创建为ClickOnce清单签名的.pfx格式数字证书 Windows Live Messenger去广告补丁 一个阴历阳历互相转化的类(c#源码)
小发现:sql2005中的异常处理消息框可以直接使用
cncxz(虫虫) · 2006-10-12 · via 博客园 - cncxz(虫虫)

使用了一段时间的SQL2005之后,发现里面的异常处理消息框(ExceptionMessageBox)功能很不错。

可以关联相应帮助,复制到剪贴板或者是查看详细的技术信息

分析了一下相关文件,发现这个功能包含在C:\Program Files\Microsoft SQL Server\90\Shared目录下的Microsoft.NetEnterpriseServers.ExceptionMessageBox.dll中,可以在.net工程中直接引用,调用示例如下:

示例1
            try
            {
                string[] aa = new string[1];
                aa[1] = "数组越界哈";
            }
            catch (Exception ex)
            {
                ExceptionMessageBox box1 = new ExceptionMessageBox(ex);
                box1.Show(this);
            }

示例2
            ExceptionMessageBox box1 = new ExceptionMessageBox("一个简单的问题,你确认执行操作么?");
            box1.Symbol = ExceptionMessageBoxSymbol.Question;
            box1.Buttons = ExceptionMessageBoxButtons.YesNo;
            box1.Caption = "问一下啊";
            DialogResult dr = box1.Show(this);
            string msg = string.Empty;
            switch (dr)
            {
                case DialogResult.Yes:
                    msg = "你选择了【是】";
                    break;
                case DialogResult.No:
                    msg = "你选择了【否】";
                    break;
            }
            MessageBox.Show(msg);

另外,还应该把C:\Program Files\Microsoft SQL Server\90\Shared\zh-CHS下的Microsoft.NetEnterpriseServers.ExceptionMessageBox.resources.dll拷出来,这个是相应简体中文资源

相关dll和使用效果演示下载地址如下
https://files.cnblogs.com/cncxz/sqlBox.rar