﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-technofantasy</title><link>http://www.cnblogs.com/technofantasy/</link><description /><language>zh-cn</language><lastBuildDate>Sat, 26 Jul 2008 08:47:41 GMT</lastBuildDate><pubDate>Sat, 26 Jul 2008 08:47:41 GMT</pubDate><ttl>60</ttl><item><title>微软社区发布会总结（多图杀猫）</title><link>http://www.cnblogs.com/technofantasy/archive/2008/06/07/1215625.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Sat, 07 Jun 2008 07:44:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2008/06/07/1215625.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/1215625.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2008/06/07/1215625.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/1215625.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/1215625.html</trackback:ping><description><![CDATA[微软visual Studio 2008社区发布会长沙站于2008年6月1日顺利结束了。活动很成功，不多说，上PP，<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_1983.JPG" alt="" border="0" /><br />
活动发的礼品袋<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2187.JPG" alt="" border="0" /><br />
每人发了付全国俱乐部领导人的扑克牌，数量有限，先来先得，能找到我和贺主席不？<br />
<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2028.JPG" alt="" border="0" /><br />
偶先来个开场白。<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2043.JPG" alt="" border="0" /><br />
微软的讲师同志讲到兴起处<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2206.JPG" border="0"  alt="" /><br />
讲师同志又在忽悠我们群众呢<img src="http://www.cnblogs.com/Emoticons/qface/055243623.gif"  alt="" /><br />
<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2174.JPG" alt="" border="0" /><br />
会场内部，来了百十来号人<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2231.JPG" alt="" border="0" /><br />
贺主席在认真听讲<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2194.JPG" alt="" border="0" /><br />
中场休息<br />
<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2268.JPG" alt="" border="0" /><br />
会后部分俱乐部成员的合影<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2081.JPG" alt="" border="0" /><br />
会场里面还是不少程序员MM的。。<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2154.JPG" alt="" border="0" /><br />
负责会务工作的MM，辛苦了！！！<br />
<br />
<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/139475/o_DSC_2240.JPG" alt="" border="0" /><br />
活动的大奖，Windows Vista Ultimate版<br />
<br />
<br />
<br />
<br />
<img src ="http://www.cnblogs.com/technofantasy/aggbug/1215625.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41316/" target="_blank">[新闻]腾讯CEO马化腾:中国互联网业准备再过冬</a>]]></description></item><item><title>微软 Visual Studio 2008 社区发布全国巡展长沙站预报</title><link>http://www.cnblogs.com/technofantasy/archive/2008/05/26/1207342.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Mon, 26 May 2008 02:39:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2008/05/26/1207342.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/1207342.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2008/05/26/1207342.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/1207342.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/1207342.html</trackback:ping><description><![CDATA[微软 Visual Studio 2008 社区发布全国巡展长沙站将于6月1号下午在富丽华大酒店召开。活动议程：<br />
<br />
<table bgcolor="#e9e9e9" border="0" cellpadding="0" cellspacing="1" width="733">
    <tbody>
        <tr>
            <td class="copy" align="center" bgcolor="#f5f5f5" width="150">13:00 - 13:40</td>
            <td class="copy" align="left" bgcolor="#f5f5f5">来宾签到</td>
        </tr>
        <tr>
            <td class="copy" align="center" bgcolor="#ffffff" valign="middle" width="150">13:40 -
            14:25</td>
            <td class="copy" align="left" bgcolor="#ffffff"><a style="text-decoration: underline;" onclick="turnit(A)"><font color="#0000ff">如何使用 Visual Studio 2008 开发下一代 Web 应用程序</font></a>
            <table id="A" style="display: none;" border="0" cellpadding="0" cellspacing="0" width="94%">
                <tbody>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="copy">Visual Studio 2008 内置的 ASP.NET AJAX 开发框架，可帮助开发人员快速构建 AJAX 风格的 Web
                        应用。针对 Javascript 的调试、智能感知、CSS 样式管理器、HTML
                        分屏视图等新增功能，将大大提高开发效率，并帮助开发人员轻松创建具有丰富用户体验的 Web 应用。<br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="copy" align="center" bgcolor="#f5f5f5" width="150">14:25 - 15:05</td>
            <td class="copy" align="left" bgcolor="#f5f5f5"><a style="text-decoration: underline;" onclick="turnit(B)"><font color="#0000ff">开启 Windows Mobile 美丽新世界</font></a>
            <table id="B" style="display: none;" border="0" cellpadding="0" cellspacing="0" width="94%">
                <tbody>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="copy">介绍 LINQ 和 WCF 在 Windows Mobile 平台上的应用；在 Windows Mobile 行业应用中如何使用
                        SQL Server CE；针对 Phone、SMS 和 Pocket Outlook 功能的 API 介绍；以及 GPS 在 Windows Mobile
                        下的应用。<br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="copy" align="center" bgcolor="#ffffff" width="150">15:05 - 15:15</td>
            <td class="copy" align="left" bgcolor="#ffffff">休息</td>
        </tr>
        <tr>
            <td class="copy" align="center" bgcolor="#f5f5f5" width="150">15:15 - 16:00</td>
            <td class="copy" align="left" bgcolor="#f5f5f5"><a style="text-decoration: underline;" onclick="turnit(C)"><font color="#0000ff">利用 Silverlight 及 Expression 构建强大的用户体验</font></a>
            <table id="C" style="display: none;" border="0" cellpadding="0" cellspacing="0" width="94%">
                <tbody>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="copy">为您展望微软在 Web、视频媒体、RIA （Rich Interactive Application
                        富交互应用）以及移动平台上的新应用前景，并演示如何利用 Expression 实现更酷的设计，以及利用 Visual Studio 2008
                        共建设计师和开发者的工作流程。<br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="copy" align="center" bgcolor="#ffffff" width="150">16:00 - 16:35</td>
            <td class="copy" align="left" bgcolor="#ffffff"><a style="text-decoration: underline;" onclick="turnit(D)"><font color="#0000ff">Partner 创新经验及机遇——微软 SaaS 孵化计划</font></a>
            <table id="D" style="display: none;" border="0" cellpadding="0" cellspacing="0" width="94%">
                <tbody>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="copy">微软与苏州软件园联合推出 SaaS 孵化计划，通过在国内建立首个 SaaS 领域第三方公益性机构<br />
                        —SaaS
                        孵化器，帮助软件企业克服 SaaS 运营过程中的种种障碍，扶持国内 SaaS 产业的发展。<br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                    <tr>
                        <td height="10"><br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        </td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="copy" align="center" bgcolor="#f5f5f5" height="24" width="150">16:35 -
            17:05</td>
            <td class="copy" align="left" bgcolor="#f5f5f5">AMD助力中小企业提供高效节能计算机技术</td>
        </tr>
        <tr>
            <td class="copy" align="center" bgcolor="#ffffff" width="150">17:05 - 17:20</td>
            <td class="copy" align="left" bgcolor="#ffffff">Q&amp;A 及抽奖</td>
        </tr>
    </tbody>
</table>
<br />
<strong><span style="font-size: 14pt;">
活动注册URL：<br />
http://www.microsoft.com/china/msdn/08rs/cs.html</span></strong><br />
<br />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
        <tr>
            <th scope="col" align="left">会议时间：</th>
        </tr>
        <tr>
            <th scope="row" align="left"><img src="http://www.cnblogs.com/technofantasy/admin/images/kong.gif" alt="" height="5" width="1" /></th>
        </tr>
        <tr>
            <th class="copy" scope="row" align="left">2008 年 6 月 1 日 星期日<strong>
            </strong><strong></strong>13:00 - 17:20</th>
        </tr>
        <tr>
            <th scope="row" align="left"><img src="http://www.cnblogs.com/technofantasy/admin/images/kong.gif" alt="" height="15" width="1" /></th>
        </tr>
        <tr>
            <th scope="row" align="left"><strong>会址详情：</strong></th>
        </tr>
        <tr>
            <th scope="row" align="left"><img src="http://www.cnblogs.com/technofantasy/admin/images/kong.gif" alt="" height="5" width="1" /></th>
        </tr>
        <tr>
            <th class="copy" scope="row" align="left">长沙富丽华大酒店 3 楼多功能国际会议厅<br />
            地址：长沙八一路 88 号（乘 1
            路、136 路、112 路、127 路&#8220;蓉园路口&#8221;下向西 100 米）</th>
        </tr>
        <tr>
            <th scope="row" align="left"><img src="http://www.cnblogs.com/technofantasy/admin/images/kong.gif" alt="" height="18" width="1" /></th>
        </tr>
    </tbody>
</table>
<br />
<br />
奖品包括：<br />
Windows Vista Ultimate版（正式版哦，不是试用版）<br />
Windows Server 2008, Visual Studio 2008, SQL Server 2008 三合一<br />
其它开发光盘<br />
<img src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/63446/o_Photo-0321.jpg" alt="" border="0" /><br />
微软T-Shirt<br />
<img src ="http://www.cnblogs.com/technofantasy/aggbug/1207342.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41315/" target="_blank">[新闻]F8 Keynote Speech[多图]</a>]]></description></item><item><title>你的博客的性别是什么？</title><link>http://www.cnblogs.com/technofantasy/archive/2006/12/20/598391.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Wed, 20 Dec 2006 09:33:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/12/20/598391.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/598391.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/12/20/598391.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/598391.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/598391.html</trackback:ping><description><![CDATA[想知道你自己的博客的性别么？进入：http://www.yodao.com/blogender/。<br>输入你的博客地址就可以了，下面是我的博客性别：<br>
<table style="background-color: #ffffff;" border="0" cellpadding="0" cellspacing="7" width="225">
    <tbody>
        <tr>
            <td align="center">博客园-technofantasy</td>
        </tr>
        <tr>
            <td>
            <table style="background-color: #f6f9ff; text-align: center; font-size: 12px; color: #323232;" border="0" cellpadding="0" cellspacing="0" height="74" width="100%">
                <tbody>
                    <tr>
                        <td valign="bottom">93.0%男性倾向,7.0%女性倾向</td>
                    </tr>
                    <tr>
                        <td align="center">
                        <table style="background-color: #f6f9ff; text-align: center; font-size: 12px; color: #323232;" border="0" cellpadding="0" cellspacing="0" width="165">
                            <tbody>
                                <tr>
                                    <td bgcolor="#91cdff" height="9" width="153"></td>
                                    <td bgcolor="#ffb1cd" height="9" width="11"></td>
                                </tr>
                            </tbody>
                        </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">评点：您的文风冷静而镇定，言语间展现出强悍的思辨能力与恢宏的胸襟，一个男子汉的阳刚形象跃然纸上。</td>
                    </tr>
                    <tr>
                        <td><a style="color: #799dce; text-decoration: none;" href="http://www.yodao.com/" target="_blank">yodao</a> | <a style="color: #799dce; text-decoration: none;" href="http://www.yodao.com/blogender/" target="_blank">博客男女</a></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
    </tbody>
</table><img src ="http://www.cnblogs.com/technofantasy/aggbug/598391.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41314/" target="_blank">[新闻]奥运核心资源被分食 搜狐央视网谁忽悠谁？</a>]]></description></item><item><title>湖南微软开发者俱乐部成立大会顺利召开</title><link>http://www.cnblogs.com/technofantasy/archive/2006/10/25/539160.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Wed, 25 Oct 2006 01:55:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/10/25/539160.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/539160.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/10/25/539160.html#Feedback</comments><slash:comments>20</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/539160.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/539160.html</trackback:ping><description><![CDATA[成立大会是在10月21号下午在牛耳教育中心的8楼举办的。我作为俱乐部的资深顾问参加了会议。先上点图片：<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_3683.jpg" width=800 border=0><br>会场盛况，前面是我和俱乐部主席贺天明在听课，前面的牌子就是湖南俱乐部的牌子。<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_3687.jpg" width=800 border=0><br>会场图2，我在上面讲课。嘿嘿。<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_1620.jpg" width=800 border=0><br>博文视点制作总监方舟在发言<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_36981.jpg" width=800 border=0><br>俞晖在讲课，图片有点黑。<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_3714.jpg" width=800 border=0><br>微软讲师徐栋在讲VISTA开发<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_3718.jpg" width=800 border=0><br>俱乐部主席贺天明在抽奖（抽奖是我们临时写的一个程序，嘿嘿）<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_1665.jpg" width=800 border=0><br>抽奖的头等奖获得者<br><br>下面是会后合影<br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_3725.jpg" width=800 border=0><br>俱乐部的几个牛人的合影<br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/IMG_3729.jpg" width=800 border=0><br>牛耳教育中心的学术部经理邹伟、我、俞晖<br><br><br><img height=600 alt="" src="http://www.cnblogs.com/images/cnblogs_com/technofantasy/DSC00033.JPG" width=800 border=0><br>俱乐部成员合影，左边第２个是副主席帅哥许桌．俱乐部的场地就是他联系的。有对爬8楼不满的可以去扁他。<br><br>最后还要非常感谢<span style="FONT-SIZE: 18pt"><strong style="COLOR: red"><a href="http://www.newer.com.cn/" target=_blank><span style="FONT-SIZE: 18pt"><strong style="COLOR: red">长沙牛耳计算机教育</strong></span></a></strong></span>提供的场地，以及<span style="FONT-SIZE: 18pt; COLOR: red"><a href="http://www.broadview.com.cn/" target=_blank><span style="FONT-SIZE: 18pt; COLOR: red"><strong>博文视点</strong></span></a></span>提供的书籍赞助。希望下次活动更成功！<br>
<img src ="http://www.cnblogs.com/technofantasy/aggbug/539160.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41313/" target="_blank">[新闻]微软推新型搜索技术"BrowseRank"挑战谷歌</a>]]></description></item><item><title>湖南微软.NET俱乐部 成立大会事宜</title><link>http://www.cnblogs.com/technofantasy/archive/2006/10/17/531565.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Tue, 17 Oct 2006 09:02:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/10/17/531565.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/531565.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/10/17/531565.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/531565.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/531565.html</trackback:ping><description><![CDATA[湖南微软.NET俱乐部成立大会将于2006年10月21日举办，地点在51广场口腔医院后的牛耳教育中心8楼。<br><br>活动报名QQ群：18993902<br><br>活动的流程安排如下：<br>&nbsp;1:30-2:00&nbsp;&nbsp;&nbsp; 签到<br>&nbsp;2:00-2:30&nbsp;&nbsp;&nbsp; 介绍俱乐部<br>&nbsp;2:30-2:45 &nbsp;&nbsp; 介绍 LOVE@Community <br>&nbsp;2:50-3:50&nbsp;&nbsp;&nbsp; 办公无处不在－Office 2007客户端开发(或Vista开发相关)<br>&nbsp;4:00-4:30&nbsp;&nbsp;&nbsp; 博文视点和.NET俱乐部出版合作方案<br>&nbsp;4:30-4:50&nbsp;&nbsp;&nbsp;  牛耳软件教育中心介绍<br>&nbsp;5:00 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 抽奖、赠书、Q&amp;A 、合影留念<br><br>本次活动由微软支持，牛耳提供场地，并且由博文视点提供活动抽奖奖品以及俱乐部书籍。<br>博文视点提供的书目有：<br><br>　　 1、《代码大全》第二版 <br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; 2、《程序员》杂志<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; 3、《最优化ASP.NET 》<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; 4、《SQL Server 2005 数据库开发详解》 <br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; 5、《SharePoint portal server2003 深入指南 》<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; 6、《应用框架的设计与实现》<br><br>下面列出这些书的封面：<br><br><img alt="最优化ASP.NET" src="http://www.applevb.com/1021/asp.net1.0.jpg" height="639" width="500"><br><br><img alt="代码大全第二版" src="http://www.applevb.com/1021/cc2.jpg"><br><br><br><img alt="应用框架的设计与实现" src="http://www.applevb.com/1021/cover.jpg" height="605" width="500"><br><br><img alt="SharePoint portal server2003 深入指南 " src="http://www.applevb.com/1021/sps2003.jpg" height="627" width="500"><br><br><img alt="SQL server 2005 数据库开发详解" src="http://www.applevb.com/1021/sqlserver2005.jpg" height="621" width="500"><br><br>  <img src ="http://www.cnblogs.com/technofantasy/aggbug/531565.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41312/" target="_blank">[新闻]2008年7月26日IT博客精选</a>]]></description></item><item><title>在VB.NET中如何使在Webbrowser中实现标签页中打开新链接</title><link>http://www.cnblogs.com/technofantasy/archive/2006/10/02/520041.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Mon, 02 Oct 2006 02:50:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/10/02/520041.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/520041.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/10/02/520041.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/520041.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/520041.html</trackback:ping><description><![CDATA[操作步骤：<br>1、在工程中添加COM的Microsoft Internet Controls的引用（这个引用对应的文件是shdocvw.dll，通常在system32目录下）。<br>2、添加如下代码：<br>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #0000ff;">Public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Class</span><span style="color: #000000;">&nbsp;Form1<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">Private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Sub</span><span style="color: #000000;">&nbsp;NewWindow3(</span><span style="color: #0000ff;">ByRef</span><span style="color: #000000;">&nbsp;ppDisp&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Object</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">ByRef</span><span style="color: #000000;">&nbsp;Cancel&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Boolean</span><span style="color: #000000;">,&nbsp;_<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">ByVal</span><span style="color: #000000;">&nbsp;dwFlags&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;UInteger,&nbsp;_<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">ByVal</span><span style="color: #000000;">&nbsp;bstrUrlContext&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">String</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">ByVal</span><span style="color: #000000;">&nbsp;bstrUrl&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">String</span><span style="color: #000000;">)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">Dim</span><span style="color: #000000;">&nbsp;xPage&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;TabPage&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">New</span><span style="color: #000000;">&nbsp;TabPage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xPage.Text&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">"</span><span style="color: #000000;">abcd</span><span style="color: #000000;">"</span><span style="color: #000000;"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TabControl1.TabPages.Add(xPage)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">Dim</span><span style="color: #000000;">&nbsp;x&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">New</span><span style="color: #000000;">&nbsp;WebBrowser<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">DirectCast</span><span style="color: #000000;">(WebBrowser1.ActiveXInstance,&nbsp;SHDocVw.WebBrowser).RegisterAsBrowser&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">True</span><span style="color: #000000;"><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xPage.Controls.Add(x)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.Dock&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;DockStyle.Fill<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.Visible&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">True</span><span style="color: #000000;"><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.Navigate(bstrUrl)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cancel&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">True</span><span style="color: #000000;"><br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">End&nbsp;Sub</span><span style="color: #000000;"><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">Private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Sub</span><span style="color: #000000;">&nbsp;NewWindow2(</span><span style="color: #0000ff;">ByRef</span><span style="color: #000000;">&nbsp;ppDisp&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Object</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">ByRef</span><span style="color: #000000;">&nbsp;Cancel&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Boolean</span><span style="color: #000000;">)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">Dim</span><span style="color: #000000;">&nbsp;xPage&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;TabPage&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">New</span><span style="color: #000000;">&nbsp;TabPage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xPage.Text&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">"</span><span style="color: #000000;">abcd</span><span style="color: #000000;">"</span><span style="color: #000000;"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TabControl1.TabPages.Add(xPage)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">Dim</span><span style="color: #000000;">&nbsp;x&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">New</span><span style="color: #000000;">&nbsp;WebBrowser<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">DirectCast</span><span style="color: #000000;">(WebBrowser1.ActiveXInstance,&nbsp;SHDocVw.WebBrowser).RegisterAsBrowser&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">True</span><span style="color: #000000;"><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xPage.Controls.Add(x)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.Dock&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;DockStyle.Fill<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.Visible&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">True</span><span style="color: #000000;"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x.Navigate(</span><span style="color: #000000;">"</span><span style="color: #000000;">about:blank</span><span style="color: #000000;">"</span><span style="color: #000000;">)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ppDisp&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;x.ActiveXInstance&nbsp;</span><span style="color: #008000;">'</span><span style="color: #008000;">DirectCast(x.ActiveXInstance,&nbsp;SHDocVw.WebBrowser).Application</span><span style="color: #008000;"><br></span><span style="color: #000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000;">'</span><span style="color: #008000;">Cancel&nbsp;=&nbsp;True</span><span style="color: #008000;"><br></span><span style="color: #000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">End&nbsp;Sub</span><span style="color: #000000;"><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">Private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">Sub</span><span style="color: #000000;">&nbsp;Form1_Load(</span><span style="color: #0000ff;">ByVal</span><span style="color: #000000;">&nbsp;sender&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;System.Object,&nbsp;</span><span style="color: #0000ff;">ByVal</span><span style="color: #000000;">&nbsp;e&nbsp;</span><span style="color: #0000ff;">As</span><span style="color: #000000;">&nbsp;System.EventArgs)&nbsp;</span><span style="color: #0000ff;">Handles</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">MyBase</span><span style="color: #000000;">.Load<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000;">'</span><span style="color: #008000;">在窗体载入后设置Webbrowser的NewWindow3事件处理函数</span><span style="color: #008000;"><br></span><span style="color: #000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000;">'</span><span style="color: #008000;">AddHandler&nbsp;DirectCast(WebBrowser1.ActiveXInstance,&nbsp;SHDocVw.WebBrowser).NewWindow3,&nbsp;AddressOf&nbsp;NewWindow3</span><span style="color: #008000;"><br></span><span style="color: #000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000;">'</span><span style="color: #008000;">如果不是Windows&nbsp;XP&nbsp;SP2的话需要监控NewWindow2消息</span><span style="color: #008000;"><br></span><span style="color: #000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">AddHandler</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">DirectCast</span><span style="color: #000000;">(WebBrowser1.ActiveXInstance,&nbsp;SHDocVw.WebBrowser).NewWindow2,&nbsp;</span><span style="color: #0000ff;">AddressOf</span><span style="color: #000000;">&nbsp;NewWindow2<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WebBrowser1.Navigate(</span><span style="color: #000000;">"</span><span style="color: #000000;">http://www.applevb.com</span><span style="color: #000000;">"</span><span style="color: #000000;">)<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">End&nbsp;Sub</span><span style="color: #000000;"><br><br></span><span style="color: #0000ff;">End&nbsp;Class</span><span style="color: #000000;"><br></span></div>
<br>
<p>运行程序，可以看到新打开的窗口都会在TabControl１的新标签页中打开．在上面的代码中，如果是Windows XP+SP2的话可以监控NewWindow3事件，否侧需要监控NewWindow2事件。<br></p><img src ="http://www.cnblogs.com/technofantasy/aggbug/520041.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41311/" target="_blank">[新闻]微软每年向Apache捐10万美元支持开源软件</a>]]></description></item><item><title>RichTextBox技巧之插入图片（转载）</title><link>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496588.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Wed, 06 Sep 2006 09:20:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496588.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/496588.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496588.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/496588.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/496588.html</trackback:ping><description><![CDATA[<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><span style="COLOR: #008000">'</span><span style="COLOR: #008000">Inserts&nbsp;the&nbsp;picture&nbsp;at&nbsp;the&nbsp;current&nbsp;insertion&nbsp;point</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_59_564_Open_Image onclick="this.style.display='none'; Codehighlighter1_59_564_Open_Text.style.display='none'; Codehighlighter1_59_564_Closed_Image.style.display='inline'; Codehighlighter1_59_564_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_59_564_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_59_564_Closed_Text.style.display='none'; Codehighlighter1_59_564_Open_Image.style.display='inline'; Codehighlighter1_59_564_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></span><span style="COLOR: #0000ff">Public</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_59_564_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;InsertPicture()</span><span id=Codehighlighter1_59_564_Open_Text><span style="COLOR: #0000ff">Function</span><span style="COLOR: #000000">&nbsp;InsertPicture(RTB&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;RichTextBox,&nbsp;pic&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;StdPicture)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strRTFall&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;lStart&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000">&nbsp;RTB<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H9D)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H81)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTFall&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;.TextRTF<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTFall&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTFall,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'9d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;PictureToRTF(pic))<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;strRTFall<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">position&nbsp;cursor&nbsp;past&nbsp;new&nbsp;insertion</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lStart&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;.Find(</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H81))<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTFall&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTFall,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'81</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;strRTFall<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelStart&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;lStart<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Function</span></span></div>
<br>PictureToRTF方法：<br>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Codehighlighter1_7_2544_Open_Image onclick="this.style.display='none'; Codehighlighter1_7_2544_Open_Text.style.display='none'; Codehighlighter1_7_2544_Closed_Image.style.display='inline'; Codehighlighter1_7_2544_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_7_2544_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_7_2544_Closed_Text.style.display='none'; Codehighlighter1_7_2544_Open_Image.style.display='inline'; Codehighlighter1_7_2544_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><span style="COLOR: #0000ff">Public</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_7_2544_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;PictureToRTF()</span><span id=Codehighlighter1_7_2544_Open_Text><span style="COLOR: #0000ff">Function</span><span style="COLOR: #000000">&nbsp;PictureToRTF(pic&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;StdPicture)&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;hMetaDC&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">,&nbsp;hMeta&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">,&nbsp;hPicDC&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">,&nbsp;hOldBmp&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;Bmp&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;BITMAP,&nbsp;Sz&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;Size,&nbsp;Pt&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;POINTAPI<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;sTempFile&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">,&nbsp;screenDC&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;headerStr&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">,&nbsp;retStr&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">,&nbsp;byteStr&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;ByteArr()&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Byte</span><span style="COLOR: #000000">,&nbsp;nBytes&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;fn&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">,&nbsp;i&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">,&nbsp;j&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;sTempFile&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;App.Path&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\~pic</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;((</span><span style="COLOR: #0000ff">Rnd</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1000000</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1000000</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #000000">\</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">.tmp</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">some&nbsp;temprory&nbsp;file</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Dir</span><span style="COLOR: #000000">(sTempFile)&nbsp;</span><span style="COLOR: #000000">&lt;&gt;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Kill</span><span style="COLOR: #000000">&nbsp;sTempFile<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">Create&nbsp;a&nbsp;metafile&nbsp;which&nbsp;is&nbsp;a&nbsp;collection&nbsp;of&nbsp;structures&nbsp;that&nbsp;store&nbsp;a</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">picture&nbsp;in&nbsp;a&nbsp;device-independent&nbsp;format.</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;hMetaDC&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;CreateMetaFile(sTempFile)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">set&nbsp;size&nbsp;of&nbsp;Metafile&nbsp;window</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;SetMapMode&nbsp;hMetaDC,&nbsp;MM_ANISOTROPIC<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;SetWindowOrgEx&nbsp;hMetaDC,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;Pt<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">GetObject</span><span style="COLOR: #000000">&nbsp;pic.Handle,&nbsp;</span><span style="COLOR: #0000ff">Len</span><span style="COLOR: #000000">(Bmp),&nbsp;Bmp<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;SetWindowExtEx&nbsp;hMetaDC,&nbsp;Bmp.Width,&nbsp;Bmp.Height,&nbsp;Sz<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">save&nbsp;sate&nbsp;for&nbsp;later&nbsp;retrieval</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;SaveDC&nbsp;hMetaDC<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">get&nbsp;DC&nbsp;compatible&nbsp;to&nbsp;screen</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;screenDC&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;GetDC(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;hPicDC&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;CreateCompatibleDC(screenDC)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;ReleaseDC&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;screenDC<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">set&nbsp;out&nbsp;picture&nbsp;as&nbsp;new&nbsp;DC&nbsp;picture</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;hOldBmp&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;SelectObject(hPicDC,&nbsp;pic.Handle)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">copy&nbsp;our&nbsp;picture&nbsp;to&nbsp;metafile</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;BitBlt&nbsp;hMetaDC,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;Bmp.Width,&nbsp;Bmp.Height,&nbsp;hPicDC,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;vbSrcCopy<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">cleanup&nbsp;-&nbsp;close&nbsp;metafile</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;SelectObject&nbsp;hPicDC,&nbsp;hOldBmp<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;DeleteDC&nbsp;hPicDC<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;DeleteObject&nbsp;hOldBmp<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">retrieve&nbsp;saved&nbsp;state</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;RestoreDC&nbsp;hMetaDC,&nbsp;</span><span style="COLOR: #0000ff">True</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;hMeta&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;CloseMetaFile(hMetaDC)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;DeleteMetaFile&nbsp;hMeta<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">header&nbsp;to&nbsp;string&nbsp;we&nbsp;want&nbsp;to&nbsp;insert</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;headerStr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">{\pict\wmetafile8</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\picw</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;pic.Width&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\pich</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;pic.Height&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\picwgoal</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;Bmp.Width&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;Screen.TwipsPerPixelX&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\pichgoal</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;Bmp.Height&nbsp;</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;Screen.TwipsPerPixelY&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">read&nbsp;metafile&nbsp;from&nbsp;disk&nbsp;into&nbsp;byte&nbsp;array</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;nBytes&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">FileLen</span><span style="COLOR: #000000">(sTempFile)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">ReDim</span><span style="COLOR: #000000">&nbsp;ByteArr(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">To</span><span style="COLOR: #000000">&nbsp;nBytes)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;fn&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">FreeFile</span><span style="COLOR: #000000">()<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Open&nbsp;sTempFile&nbsp;</span><span style="COLOR: #0000ff">For</span><span style="COLOR: #000000">&nbsp;Binary&nbsp;Access&nbsp;Read&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;#fn<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Get</span><span style="COLOR: #000000">&nbsp;#fn,&nbsp;,&nbsp;ByteArr<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Close&nbsp;#fn<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;nlines&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">turn&nbsp;each&nbsp;byte&nbsp;into&nbsp;two&nbsp;char&nbsp;hex&nbsp;value</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;byteStr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Do</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;byteStr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;byteStr&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;vbCrLf<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">For</span><span style="COLOR: #000000">&nbsp;j&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">To</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">39</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;i&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;i&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;nBytes&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Exit</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">For</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;byteStr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;byteStr&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;Hex00(ByteArr(i))<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Next</span><span style="COLOR: #000000">&nbsp;j<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Loop</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">While</span><span style="COLOR: #000000">&nbsp;i&nbsp;</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">&nbsp;nBytes<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">string&nbsp;we&nbsp;will&nbsp;be&nbsp;inserting</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;retStr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;headerStr&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">LCase</span><span style="COLOR: #000000">(byteStr)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;vbCrLf&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">}</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;PictureToRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;retStr<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">remove&nbsp;temp&nbsp;metafile</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Kill</span><span style="COLOR: #000000">&nbsp;sTempFile<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Function</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">adds&nbsp;leading&nbsp;zero&nbsp;to&nbsp;hex&nbsp;value&nbsp;if&nbsp;needed.</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_2597_2689_Open_Image onclick="this.style.display='none'; Codehighlighter1_2597_2689_Open_Text.style.display='none'; Codehighlighter1_2597_2689_Closed_Image.style.display='inline'; Codehighlighter1_2597_2689_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_2597_2689_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2597_2689_Closed_Text.style.display='none'; Codehighlighter1_2597_2689_Open_Image.style.display='inline'; Codehighlighter1_2597_2689_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></span><span style="COLOR: #0000ff">Public</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_2597_2689_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;Hex00()</span><span id=Codehighlighter1_2597_2689_Open_Text><span style="COLOR: #0000ff">Function</span><span style="COLOR: #000000">&nbsp;Hex00(icolor&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Byte</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;Hex00&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Right</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Hex</span><span style="COLOR: #000000">(icolor),&nbsp;</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Function</span></span></div>
<br>
<img src ="http://www.cnblogs.com/technofantasy/aggbug/496588.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41310/" target="_blank">[新闻]AOL将关闭3个网站以降低成本 集中发力广告</a>]]></description></item><item><title>RichTextBox技巧之插入表格（转载）</title><link>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496580.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Wed, 06 Sep 2006 09:17:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496580.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/496580.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496580.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/496580.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/496580.html</trackback:ping><description><![CDATA[<p>Properties - all sizes are in twips<br>&nbsp;xLeft - Position of the left edge of the table<br>&nbsp;isCentered - Set to True to center the table<br>&nbsp;Rows - Sets or returns the number of rows in the table<br>&nbsp;Columns - Sets or returns the number of columns in the table<br>&nbsp;Row - An Array of Rows (1 to Rows)<br>&nbsp;Column - An Array of columns (1 to Columns)<br>&nbsp;&nbsp;Column(i).xWidth - Width of the ith column<br>&nbsp;Cell - A 2-d Array of Cells (1 to Rows, 1 to Columns)<br>&nbsp;&nbsp;Cell(r, c).Contents - Sets or returns the contents of the cell</p>
<p>Methods<br>&nbsp;InsertTable(RTB As RichTextBox) - Inserts the table into the RichTextBox<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at the currrent cursor position. <br><br>代码下载地址：<br><a href="http://www.applevb.com/RTFtable.zip">http://www.applevb.com/RTFtable.zip</a><br><br>使用范例：<br></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">Option</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Explicit</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;RTFtable&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;clsRTFtable<br><img id=Codehighlighter1_61_845_Open_Image onclick="this.style.display='none'; Codehighlighter1_61_845_Open_Text.style.display='none'; Codehighlighter1_61_845_Closed_Image.style.display='inline'; Codehighlighter1_61_845_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_61_845_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_61_845_Closed_Text.style.display='none'; Codehighlighter1_61_845_Open_Image.style.display='inline'; Codehighlighter1_61_845_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></span><span style="COLOR: #0000ff">Private</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Declare</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_61_845_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;LockWindowUpdate()</span><span id=Codehighlighter1_61_845_Open_Text><span style="COLOR: #0000ff">Function</span><span style="COLOR: #000000">&nbsp;LockWindowUpdate&nbsp;</span><span style="COLOR: #0000ff">Lib</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">user32</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;(&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">ByVal</span><span style="COLOR: #000000">&nbsp;hwndLock&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>)&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img id=Codehighlighter1_152_844_Open_Image onclick="this.style.display='none'; Codehighlighter1_152_844_Open_Text.style.display='none'; Codehighlighter1_152_844_Closed_Image.style.display='inline'; Codehighlighter1_152_844_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_152_844_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_152_844_Closed_Text.style.display='none'; Codehighlighter1_152_844_Open_Image.style.display='inline'; Codehighlighter1_152_844_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span style="COLOR: #0000ff">Private</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_152_844_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Sub&nbsp;Command1_Click()</span><span id=Codehighlighter1_152_844_Open_Text><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000">&nbsp;Command1_Click()<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;i&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Integer</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Set</span><span style="COLOR: #000000">&nbsp;RTFtable&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">New</span><span style="COLOR: #000000">&nbsp;clsRTFtable<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">stop&nbsp;flicker</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Call</span><span style="COLOR: #000000">&nbsp;LockWindowUpdate(RichTextBox1.hWnd)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">For</span><span style="COLOR: #000000">&nbsp;i&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">To</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">5</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000">&nbsp;RTFtable<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">set&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;table</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;.Columns&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">3</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;.Rows&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">fill&nbsp;the&nbsp;cells</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">Row&nbsp;1</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;.Cell(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">).Contents&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Row&nbsp;1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;.Cell(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">).Contents&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Column2</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;.Cell(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">3</span><span style="COLOR: #000000">).Contents&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Column3</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">Row&nbsp;2</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;.Cell(</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">).Contents&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Row2</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;.Cell(</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">).Contents&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">R2C2</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;.Cell(</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">3</span><span style="COLOR: #000000">).Contents&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">R2C3</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">do&nbsp;we&nbsp;want&nbsp;to&nbsp;center&nbsp;it&nbsp;on&nbsp;the&nbsp;page?</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;.isCentered&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">True</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">insert&nbsp;the&nbsp;table&nbsp;at&nbsp;the&nbsp;current&nbsp;cursor&nbsp;postion</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;.InsertTable&nbsp;RichTextBox1<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Next</span><span style="COLOR: #000000">&nbsp;i<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Call</span><span style="COLOR: #000000">&nbsp;LockWindowUpdate(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Sub</span></span></div>
</span>
<img src ="http://www.cnblogs.com/technofantasy/aggbug/496580.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41310/" target="_blank">[新闻]AOL将关闭3个网站以降低成本 集中发力广告</a>]]></description></item><item><title>RichTextBox技巧之插入上标和下标（转载）</title><link>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496571.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Wed, 06 Sep 2006 09:10:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496571.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/496571.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496571.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/496571.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/496571.html</trackback:ping><description><![CDATA[<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Codehighlighter1_7_646_Open_Image onclick="this.style.display='none'; Codehighlighter1_7_646_Open_Text.style.display='none'; Codehighlighter1_7_646_Closed_Image.style.display='inline'; Codehighlighter1_7_646_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_7_646_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_7_646_Closed_Text.style.display='none'; Codehighlighter1_7_646_Open_Image.style.display='inline'; Codehighlighter1_7_646_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><span style="COLOR: #0000ff">Public</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_7_646_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Sub&nbsp;SetSubScript()</span><span id=Codehighlighter1_7_646_Open_Text><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000">&nbsp;SetSubScript(RTB&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;RichTextBox)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;iPos&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strRTF&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000">&nbsp;RTB<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;.SelCharOffset&nbsp;</span><span style="COLOR: #000000">&gt;=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">subscript&nbsp;the&nbsp;current&nbsp;selection</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iPos&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;.SelStart<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H9D)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H81)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(.TextRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'9d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\sub\dn2&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'81</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\nosupersub\up0&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelStart&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;iPos<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Else</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">turn&nbsp;off&nbsp;subscripting</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H9D)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;.SelText<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;.TextRTF<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'9d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\nosupersub\up0&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;,&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Sub</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><br><img id=Codehighlighter1_656_1325_Open_Image onclick="this.style.display='none'; Codehighlighter1_656_1325_Open_Text.style.display='none'; Codehighlighter1_656_1325_Closed_Image.style.display='inline'; Codehighlighter1_656_1325_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_656_1325_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_656_1325_Closed_Text.style.display='none'; Codehighlighter1_656_1325_Open_Image.style.display='inline'; Codehighlighter1_656_1325_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></span><span style="COLOR: #0000ff">Public</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_656_1325_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Sub&nbsp;SetSuperScript()</span><span id=Codehighlighter1_656_1325_Open_Text><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000">&nbsp;SetSuperScript(RTB&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;RichTextBox)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">add&nbsp;tags&nbsp;\super\up1&nbsp;and&nbsp;\nosupersub\up0</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;iPos&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strRTF&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000">&nbsp;RTB<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iPos&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;.SelStart<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;RTB.SelCharOffset&nbsp;</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">superscript&nbsp;the&nbsp;current&nbsp;selection</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H9D)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H80)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(.TextRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'9d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\super\up2&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'81</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\nosupersub\up0&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Else</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">turn&nbsp;off</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H9D)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;.SelText<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;.TextRTF<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'9d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\nosupersub\up0&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;,&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelStart&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;iPos<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Sub</span></span></div>
<img src ="http://www.cnblogs.com/technofantasy/aggbug/496571.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41310/" target="_blank">[新闻]AOL将关闭3个网站以降低成本 集中发力广告</a>]]></description></item><item><title>RichTextBox技巧之显示自定义高亮显示（转载）</title><link>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496570.html</link><dc:creator>陈锐</dc:creator><author>陈锐</author><pubDate>Wed, 06 Sep 2006 09:08:00 GMT</pubDate><guid>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496570.html</guid><wfw:comment>http://www.cnblogs.com/technofantasy/comments/496570.html</wfw:comment><comments>http://www.cnblogs.com/technofantasy/archive/2006/09/06/496570.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/technofantasy/comments/commentRss/496570.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/technofantasy/services/trackbacks/496570.html</trackback:ping><description><![CDATA[<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Codehighlighter1_7_672_Open_Image onclick="this.style.display='none'; Codehighlighter1_7_672_Open_Text.style.display='none'; Codehighlighter1_7_672_Closed_Image.style.display='inline'; Codehighlighter1_7_672_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_7_672_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_7_672_Closed_Text.style.display='none'; Codehighlighter1_7_672_Open_Image.style.display='inline'; Codehighlighter1_7_672_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><span style="COLOR: #0000ff">Public</span><span style="COLOR: #000000">&nbsp;</span><span id=Codehighlighter1_7_672_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Sub&nbsp;HighLight()</span><span id=Codehighlighter1_7_672_Open_Text><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000">&nbsp;HighLight(RTB&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;RichTextBox,&nbsp;lColor&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">add&nbsp;new&nbsp;color&nbsp;to&nbsp;color&nbsp;table</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>'</span><span style="COLOR: #008000">add&nbsp;tags&nbsp;\highlight#&nbsp;and&nbsp;\highlight0</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>'</span><span style="COLOR: #008000">where&nbsp;#&nbsp;is&nbsp;new&nbsp;color&nbsp;number</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;iPos&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;strRTF&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;bkColor&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Integer</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000">&nbsp;RTB<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iPos&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;.SelStart<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">bracket&nbsp;selection</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H9D)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;.SelText&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Chr</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H81)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;RTB.TextRTF<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">add&nbsp;new&nbsp;color</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bkColor&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;AddColorToTable(strRTF,&nbsp;lColor)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">add&nbsp;highlighting</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'9d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\up1\highlight</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">CStr</span><span style="COLOR: #000000">(bkColor)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Replace</span><span style="COLOR: #000000">(strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\'81</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\highlight0\up0&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextRTF&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;strRTF<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SelStart&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;iPos<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">With</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Sub</span></span></div>
<br>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Codehighlighter1_0_1686_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_1686_Open_Text.style.display='none'; Codehighlighter1_0_1686_Closed_Image.style.display='inline'; Codehighlighter1_0_1686_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_0_1686_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_1686_Closed_Text.style.display='none'; Codehighlighter1_0_1686_Open_Image.style.display='inline'; Codehighlighter1_0_1686_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><span id=Codehighlighter1_0_1686_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Function&nbsp;AddColorToTable()</span><span id=Codehighlighter1_0_1686_Open_Text><span style="COLOR: #0000ff">Function</span><span style="COLOR: #000000">&nbsp;AddColorToTable(strRTF&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000">,&nbsp;lColor&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">)&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Integer</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;iPos&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000">,&nbsp;jpos&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Long</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;ctbl&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;tagColors<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;nColors&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Integer</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;tagNew&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;i&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Integer</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;iLen&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Integer</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;split1&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;split2&nbsp;</span><span style="COLOR: #0000ff">As</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">String</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">make&nbsp;new&nbsp;color&nbsp;into&nbsp;tag</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;tagNew&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\red</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">CStr</span><span style="COLOR: #000000">(lColor&nbsp;</span><span style="COLOR: #0000ff">And</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">HFF)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\green</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">CStr</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">Int</span><span style="COLOR: #000000">(lColor&nbsp;</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H100)&nbsp;</span><span style="COLOR: #0000ff">And</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">HFF)&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;_<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\blue</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">CStr</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">Int</span><span style="COLOR: #000000">(lColor&nbsp;</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">H10000))<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">find&nbsp;colortable</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;iPos&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">InStr</span><span style="COLOR: #000000">(strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">{\colortbl</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;iPos&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">if&nbsp;table&nbsp;already&nbsp;exists</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jpos&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">InStr</span><span style="COLOR: #000000">(iPos,&nbsp;strRTF,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;}</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">color&nbsp;table</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctbl&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Mid</span><span style="COLOR: #000000">(strRTF,&nbsp;iPos&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">12</span><span style="COLOR: #000000">,&nbsp;jpos&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;iPos&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">12</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">array&nbsp;of&nbsp;color&nbsp;tags</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tagColors&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Split</span><span style="COLOR: #000000">(ctbl,&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nColors&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">UBound</span><span style="COLOR: #000000">(tagColors)&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">see&nbsp;if&nbsp;our&nbsp;color&nbsp;already&nbsp;exists&nbsp