﻿<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="/Images/rss.xslt"?><rss version="2.0"><channel><title>柳永法－.Net + C#</title><description>柳永法(yongfa365)'Blog RSS</description><link>http://www.yongfa365.com/Csharp/</link><copyright>(C) 2007 http://www.yongfa365.com</copyright><item>
  <title>TreeView序列化，TreeView串行化，TreeView反序列化 c# winform</title>
  <description><![CDATA[2009年给公司做了个管理系统，里面用到了TreeView，数据有1500多条，加载要10秒钟左右<br />柳永法(yongfa365)'Blog的特点是：有问题，就要解决，尤其是像这种几十人、上百人使用的系统。<br />后来使用登录时加载数据，登录后再使用就Clone()的解决方案，感觉不错。<br />不过，每次调试程序时得等半天，实在不爽。<br />前些天看到“..]]></description>
  <link>http://www.yongfa365.com/Item/WinForm-TreeView-SerializeTree.html</link>
  <pubDate>Thu, 07 Jan 2010 16:58:31 GMT</pubDate>
</item>
<item>
  <title>C# WinForm 上传图片，文件到服务器的方法Uploader.ashx</title>
  <description><![CDATA[网上有很多方案，起初用时，因为对asp.net不太了解，觉得FTP实现不错，可是后来发现，如果机器在域控下，就会有问题。<br />一年过去了，asp.net也熟悉了，知道ajax没事应该用ashx，验证码也用ashx，当然这里要说的WinForm上传也应该是ashx了吧，哈哈，先提供简单思路：<br />接收文件的asp.net是：Uploader.ashx，相关代码：<br /><br />&lt;%..]]></description>
  <link>http://www.yongfa365.com/Item/WinForm-Uploader.ashx.html</link>
  <pubDate>Mon, 04 Jan 2010 17:30:48 GMT</pubDate>
</item>
<item>
  <title>C# Dictionary 终极使用方法</title>
  <description><![CDATA[<br />using System;<br />using System.Collections.Generic;<br /><br />class DictionaryDemo<br />{<br />    static void Main(string[] args)<br />    {<br />        DictionaryDemo001();<br />        Console.ReadLine();<br /><br />        DictionaryDemo002();<br />        Console.ReadLine();<br /><br />        DictionaryDemo003();<br />        Console.ReadLin..]]></description>
  <link>http://www.yongfa365.com/Item/Dictionary.html</link>
  <pubDate>Tue, 24 Nov 2009 11:31:14 GMT</pubDate>
</item>
<item>
  <title>.net VS2008 发布时打包水晶报表 的方法</title>
  <description><![CDATA[从网上找的方法是合并msm什么的，我的程序又不是用msi打包的，所以，不能用，换种方法：<br />C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5<br />这里可以看到CRRedist2008_x86.msi及zh-CHS\CRRedist2008_x86_chs.msi<br />只要把这两个安装了，水晶报表就可以使用了，因为网上有人说水晶报..]]></description>
  <link>http://www.yongfa365.com/Item/CrystalReports-DaBao.html</link>
  <pubDate>Sat, 08 Aug 2009 17:42:11 GMT</pubDate>
</item>
<item>
  <title>AES加密解密 Web版及程序版</title>
  <description><![CDATA[软件功能：可用来加密任何文本，只要别人不知道你的密码，基本上他是暴力破解不了的，所以呀，机器上那些想保密的东西都用来加密吧，嘎嘎<br />AES高级加密标准　密码学中的高级加密标准，是美国联邦政府采用的一种区块加密标准。<br /> <br />主要代码：<br /><br /><br />using System;<br />using System.Text;<br />using System.Security.Cryptography;..]]></description>
  <link>http://www.yongfa365.com/Item/AES-Jia-Mi-Jie-Mi.html</link>
  <pubDate>Mon, 18 May 2009 22:55:30 GMT</pubDate>
</item>
<item>
  <title>[.net自定义控件]ComboBox与TreeView组合控件 ComboBoxTree</title>
  <description><![CDATA[平时常用无限级分类，只是这个无限级树，每次都得拖ComboBox，设置，拖TreeView，再设置，代码里也得整来整去，很是麻烦，也很是不爽，所以改造下。<br />不过我的水平想组合这两个东西，可太有难度了，所以还是上网上找到，在CodeProject上找到一个评价还不错的，拿下来修改，改造了两天，终于可以很方便的使用了。<br />不过还是我..]]></description>
  <link>http://www.yongfa365.com/Item/ComboBoxTree.html</link>
  <pubDate>Thu, 14 May 2009 22:49:26 GMT</pubDate>
</item>
<item>
  <title>C# 数组转换为DataTable 的三个方法</title>
  <description><![CDATA[        /// &lt;summary&gt;<br />        /// 反一个M行N列的二维数组转换为DataTable<br />        /// &lt;/summary&gt;<br />        /// &lt;param name=&quot;ColumnNames&quot;&gt;一维数组，代表列名，不能有重复值&lt;/param&gt;<br />        /// &lt;param name=&quot;Arrays&quot;&gt;M行N列的二维数组&lt;/param&gt;<br />        /// &lt;returns&gt;返回DataTable&lt;/returns&gt;<br />        /// &lt;remarks&gt;柳永法 http://www.yongfa365.com/ &lt;/remarks&gt;<br />        public static DataTable Convert(string[] ColumnNames, string[,] Arrays)<br />        {<br />            DataTable dt = new DataTable();<br /><br />            foreach (string ColumnName in ColumnNames)<br />            {<br />                dt.Columns.Add(ColumnName, typeof(string));<br />            }<br /><br />            for (int i1 = 0; i1 &lt; Arrays.GetLength(0); i1++)<br />            {<br />                DataRow dr = dt.NewRow();<br />                for (int i = 0; i &lt; ColumnNames.Length; i++)<br />                {<br />                    dr[i] = Arrays[i1, i].ToString();<br />                }<br />                dt.Rows.Add(dr);<br />            }<br /><br />            return dt;<br /><br />        }<br />]]></description>
  <link>http://www.yongfa365.com/Item/ArrayToDataTable.html</link>
  <pubDate>Thu, 14 May 2009 21:02:39 GMT</pubDate>
</item>
<item>
  <title>[.net自定义控件] 之DefaultValue(object)</title>
  <description><![CDATA[今天又加班了一小时，害得老婆骂，就是因为这该死的东西，不过现在终于弄清了，拿出来凉凉。<br />今天快下班时，我发现我发明的NumTextBox不好使了，具体症状是：有时起作用，有时不起作用，有时在属性栏里看到的属性自己变了，我发誓，我决对没动他，<br />郁闷的要死，每天都是我要下班的时候，就来问题，解决吧。<br />本以为是因为..]]></description>
  <link>http://www.yongfa365.com/Item/Winform-UserContrl-DefaultValue.html</link>
  <pubDate>Wed, 13 May 2009 21:37:02 GMT</pubDate>
</item>
<item>
  <title>[.net自定义控件]TextBox控件重写 之NumTextBox</title>
  <description><![CDATA[TextBox控件重写 之NumTextBox，主要实现的功能是，只允许输入数字，或float,double,<br /><br />等加了一个属性InputType可以设置其，还可以自己进一步扩展，因为是开源的。<br />]]></description>
  <link>http://www.yongfa365.com/Item/NumTextBox.html</link>
  <pubDate>Wed, 13 May 2009 12:15:03 GMT</pubDate>
</item>
<item>
  <title>[.net自定义控件]ComboBox控件重写 之ComboBoxEx</title>
  <description><![CDATA[方法或属性 介绍 <br />Text 原控件属性 <br />Value 等价于ComboBox绑定状态的SelectedValue,或非绑定状态的：Text <br />SelectedByValue(object obj) 绑定状态时根据ValueMember选择，非绑定状态时根据SelectedItem选择。精确查找 <br />SelectedByText(object obj) 绑定状态时根据DisplayMember选择，非绑定状态时根据SelectedItem选择。精确查找 <br />]]></description>
  <link>http://www.yongfa365.com/Item/ComboBoxEx.html</link>
  <pubDate>Sun, 10 May 2009 15:42:29 GMT</pubDate>
</item>
<item>
  <title>.net winform 左边TreeView右边放窗体，之间有个可拖动的竖条。</title>
  <description><![CDATA[设置主窗体的IsMdiContainer = true;<br />拖过来一个TreeView,设置Dock为left<br />在 工具箱--&gt;所有Windows窗体 里拖出一个 Splitter（不是SplitContainer） 来放到TreeView的右边]]></description>
  <link>http://www.yongfa365.com/Item/Winform-LayOut.html</link>
  <pubDate>Wed, 06 May 2009 10:18:48 GMT</pubDate>
</item>
<item>
  <title>ADO.NET 2.0技术内幕 之 连接池</title>
  <description><![CDATA[3.6  连  接  池<br />与微软以前的数据访问技术类似，ADO.NET包括对连接池的内置支持。<br />3.6.1  连接句柄和物理连接<br />如果正在使用Visual Studio，可以使用Visual Studio调试工具检查对象的一些内部私有属性。例如，编写一些代码来打开一个SqlConnection，并在调用Open方法的地方设置断点。右击代码中的对象，并选择【添加监视..]]></description>
  <link>http://www.yongfa365.com/Item/ADO.NET-2.0-Connection-Pool.html</link>
  <pubDate>Sun, 01 Mar 2009 20:12:31 GMT</pubDate>
</item>
<item>
  <title>using的几种用法 C#</title>
  <description><![CDATA[using 用作命名空间指示符<br />//指定Font类的别名为F<br />    using F = System.Drawing.Font;<br />//using 语句管理资源的用法<br />]]></description>
  <link>http://www.yongfa365.com/Item/using.html</link>
  <pubDate>Sun, 01 Mar 2009 19:35:10 GMT</pubDate>
</item>
<item>
  <title>ASP.net View State</title>
  <description><![CDATA[什么是ViewState？<br />对于ViewState，我们有许多的误解。Viewstate不保存控件，而是去保存form中对应ID控件的值，特别是那些由于他们没有和form一起post 而在页面回传时会丢失的控件的值。viewstate一般不要用来保存session或在页面间传输数据。在页面回传后，viewstate不能用来动态地创建页面的控件。他在页面回传之后不回复..]]></description>
  <link>http://www.yongfa365.com/Item/ASP.net-View-State.html</link>
  <pubDate>Thu, 26 Feb 2009 10:04:49 GMT</pubDate>
</item>
<item>
  <title>世界上最简单的ASP.net的Forms验证Demo</title>
  <description><![CDATA[如果您研究过这个问题，那么，你一定会比较郁闷，现在网上流行的那个，国产的，里面有点问题，反正我一从昨天研究到现在 2008年12月17日 23时59分10秒，才搞明白是怎么回事，你说我们这些人容易吗！如果只是为了完成任务，我用ASP就OK了，为什么还要用ASP.net,如果我们用.net时还用ASP的思路也得了，为什么还要研究ASP.net提..]]></description>
  <link>http://www.yongfa365.com/Item/ASP.net-Forms-Demo.html</link>
  <pubDate>Thu, 18 Dec 2008 00:11:54 GMT</pubDate>
</item>
<item>
  <title>C# 实现Quoted-Printable编码、解码</title>
  <description><![CDATA[/// &lt;summary&gt;<br />/// Class for encoding and decoding a string to QuotedPrintable<br />/// RFC 1521 http://www.ietf.org/rfc/rfc1521.txt<br />/// RFC 2045 http://www.ietf.org/rfc/rfc2045.txt<br />/// Date: 2006-03-23<br />/// Author: Kevin Spaun<br />/// Company: SPAUN Informationstechnik GmbH - http://www.spaun-it.com/<br />/// Feedback: kspaun@spaun-it.de<br />/// License: This piece of code comes with no guaranties. You can use it for whatever you want for free.<br />///<br />/// Modified by Will Huang ( http://blog.miniasp.com/post/2008/02/14/Quoted-Printable-Encoding-and-Decoding.aspx )<br />/// Modified at 2008-02-13<br />/// <br />/// Modified by yongfa365 (http://www.yongfa365.com)<br />/// Modified at 2008-11-29<br />/// Modified for MySelf<br />/// <br />/// &lt;/summary&gt;]]></description>
  <link>http://www.yongfa365.com/Item/Quoted-Printable-Encoding-Decoding-Encode-Decode.html</link>
  <pubDate>Sat, 29 Nov 2008 13:34:53 GMT</pubDate>
</item>
<item>
  <title>.NET Winform 开发中的一些小技巧</title>
  <description><![CDATA[Some Cool Tips for .NET<br />1. 如何创建一个可改变大小没有标题栏的窗体？（How to create a form with resizing borders and no title bar?）<br />form1.Text = string. Empty; <br />form1.ControlBox = false;<br /><br />2. 如何在.NET的Windows窗体上启用XP主题集？（How to use XP Themes with Windows Forms using the .NET?）<br />确认..]]></description>
  <link>http://www.yongfa365.com/Item/Winform-.NET.Tips.html</link>
  <pubDate>Tue, 25 Nov 2008 11:00:16 GMT</pubDate>
</item>
<item>
  <title>遍历窗体上所有CheckBox控件 .net winform</title>
  <description><![CDATA[//遍历窗体上所有CheckBox控件 .net winform<br /><br />StringBuilder sb = new StringBuilder();<br />foreach (Control c in Controls)<br />{<br />    if (c is CheckBox)<br />    {<br />        if (((CheckBox)c).Checked == true)<br />        {<br />            sb.Append(&quot;,&quot;);<br />            sb.Append(c.Text.ToString());<br />        }<br />    }<br />}<br />sb.Append(&quot;,&quot;);<br /><br />textBox1.Text = sb.ToString();]]></description>
  <link>http://www.yongfa365.com/Item/Bian-Li-winform-CheckBox-Controls.html</link>
  <pubDate>Mon, 03 Nov 2008 11:19:40 GMT</pubDate>
</item>
<item>
  <title>Microsoft Visual Studio 点滴</title>
  <description><![CDATA[控件的各属性的值如果改变过他会以黑体显示<br />如果是bool的可以直接双击改变他的值<br />可以双击属性名来选中属性的值.]]></description>
  <link>http://www.yongfa365.com/Item/Microsoft-Visual-Studio.html</link>
  <pubDate>Fri, 19 Sep 2008 14:31:28 GMT</pubDate>
</item>
<item>
  <title>StreamWriter生成不带BOM的UTF8文件[极简单]</title>
  <description><![CDATA[以前看到有人好像要改写utf8让他不生成标记，大可不用那样，系统已经提供的相关功能了。<br />]]></description>
  <link>http://www.yongfa365.com/Item/StreamWriter-Made-No-BOM-UTF8-File.html</link>
  <pubDate>Thu, 11 Sep 2008 01:38:04 GMT</pubDate>
</item>
<item>
  <title>根据Text及Value或ValueMember设定comboBox或DropDownList的选中值</title>
  <description><![CDATA[winform用起来感觉就是没有web方便，不知道微软怎么想的<br />web里的FindByText,FindByValue多直观呀而在<br />winform里，确还用FindString,根本就没有想让你用ByValue,以至于我找了一天和想了很多方法来实现根据ValueMember来查找，但都比较郁闷，最终虽然还是找到了，不过感觉不伦不类的，既然value用的这么普遍，为什么就不能在winform里加上这个呢。]]></description>
  <link>http://www.yongfa365.com/Item/FindByText-FindByValue-FindString-SelectedValue.html</link>
  <pubDate>Tue, 09 Sep 2008 10:11:14 GMT</pubDate>
</item>
<item>
  <title>comboBox dropdownlist droplist 添加 value</title>
  <description><![CDATA[public class ListItem<br />{<br />    private string _key = string.Empty;<br />    private string _value = string.Empty;<br />    public ListItem(string pKey, string pValue)<br />    {<br />        _key = pKey;<br />        _value = pValue;<br />    }<br />    public override string ToString()<br />    {<br />        return this._value;<br />  ..]]></description>
  <link>http://www.yongfa365.com/Item/comboBox-dropdownlist-droplist-Tian-Jia-value.html</link>
  <pubDate>Wed, 03 Sep 2008 17:03:10 GMT</pubDate>
</item>
<item>
  <title>代码生成器</title>
  <description><![CDATA[1:CodeSmith<br />一款人气很旺国外的基于模板的dotnet代码生成器<br />官方网站:http://www.codesmithtools.com<br />官方论坛：http://forum.codesmithtools.com/default.aspx<br />版权形式：30天试用<br />开源：否<br />需要先注册确认后才能下载]]></description>
  <link>http://www.yongfa365.com/Item/DaiMaShengChengQi.html</link>
  <pubDate>Wed, 03 Sep 2008 12:15:43 GMT</pubDate>
</item>
<item>
  <title>ASP.NET中的跳转:200, 301, 302</title>
  <description><![CDATA[对于用户来说，各个跳转都差不很多，都可以达到目的。但对于SEO来说，这些差得很远，状态200第三条使用合适对SEO有很大好处，但状态200的第一条和状态302却基本没有一点益处，然后很可惜，302跳转被用到了满大街。<br />]]></description>
  <link>http://www.yongfa365.com/Item/ASP.net-200-301-302.html</link>
  <pubDate>Sat, 30 Aug 2008 11:21:43 GMT</pubDate>
</item>
<item>
  <title>Conn.Open(),Conn.Close() 连接池，效率问题</title>
  <description><![CDATA[mCommand.Connection.Close(); <br /><br />不是把连接真正的关闭，而是把连接归还给连接池。]]></description>
  <link>http://www.yongfa365.com/Item/conn.open.conn.close.html</link>
  <pubDate>Fri, 29 Aug 2008 09:39:05 GMT</pubDate>
</item>
<item>
  <title>protected override void Render(HtmlTextWriter writer)</title>
  <description><![CDATA[    protected override void Render(HtmlTextWriter writer)<br />    {<br />        //把最终要输出的html压缩后再输出<br />        StringWriter html = new StringWriter();<br />        HtmlTextWriter tw = new HtmlTextWriter(html);<br />        base.Render(tw);<br />        string outhtml = html.ToString();<br />        outhtml = Regex.Replace(outhtml, &quot;\\s+&quot;, &quot; &quot;);<br />        outhtml = Regex.Replace(outhtml, &quot;&gt;\\s+&lt;&quot;, &quot;&gt;&lt;&quot;);<br />        outhtml = outhtml.Trim();<br />        writer.Write(outhtml);<br />    }<br />]]></description>
  <link>http://www.yongfa365.com/Item/protected-override-void-RenderHtmlTextWriter-writer.html</link>
  <pubDate>Sat, 09 Aug 2008 22:36:13 GMT</pubDate>
</item>
<item>
  <title>C#,winform,ShowDialog,子窗体向父窗体传值</title>
  <description><![CDATA[窗体的show方法，没有给调用代码任何通知，如果需要通知，使用showdialog是一种好的选择。<br />在调用show方法后，show方法后面的代码会立即执行，调用showdialog方法后，调用代码被暂停执行，等到调用showdialog方法的窗体关系后再继续执行。而且窗体可以返回一个dialogresult值，他描述了窗体关闭的原因，例如OK,Cancel，yes..]]></description>
  <link>http://www.yongfa365.com/Item/WinForm-ShowDialog-ZiChuangTiXiangFuChuangTiChuanZhi.html</link>
  <pubDate>Thu, 07 Aug 2008 14:29:14 GMT</pubDate>
</item>
<item>
  <title>DataGridView导出到Excel的三个方法[亲测]</title>
  <description><![CDATA[/// &lt;summary&gt; <br />/// 打开Excel并将DataGridView控件中数据导出到Excel<br />/// &lt;/summary&gt; <br />/// &lt;param name=&quot;dgv&quot;&gt;DataGridView对象 &lt;/param&gt; <br />/// &lt;param name=&quot;isShowExcle&quot;&gt;是否显示Excel界面 &lt;/param&gt; <br />/// &lt;remarks&gt;<br />/// add com &quot;Microsoft Excel 11.0 Object Library&quot;<br />/// using Excel=Microsoft.Office.Interop.Excel;<br />/// &lt;/remarks&gt;<br />/// &lt;returns&gt; &lt;/returns&gt; <br />]]></description>
  <link>http://www.yongfa365.com/Item/DataGridViewToExcel.html</link>
  <pubDate>Wed, 06 Aug 2008 21:56:45 GMT</pubDate>
</item>
<item>
  <title>Web.config备用</title>
  <description><![CDATA[  &lt;!--■■■■■■■■■■■■■■■■■■■伪静态配置 end■■■■■■■■■■■■■■■■■■■--&gt;<br />  &lt;!--System.Configuration.ConfigurationSettings.AppSettings[&quot;SocutDataLink&quot;];--&gt;<br />  &lt;!--传说中以前.net1.1用这个保存数据库链接,如今可以用这个来保存一些配置--&gt;<br />  &lt;appSettings&gt;<br />    &lt;add key=&quot;SocutDataLink&quot; value=&quot;Data/db1.mdb&quot;/&gt;<br />    &lt;add key=&quot;Domain&quot; value=&quot;http://www.yongfa365.com/&quot;/&gt;<br />    &lt;add key=&quot;Author&quot; value=&quot;柳永法,yongfa365&quot;/&gt;<br />  &lt;/appSettings&gt;<br />  &lt;!--System.ConfigurationConfigurationManager]]></description>
  <link>http://www.yongfa365.com/Item/Web.config.html</link>
  <pubDate>Sun, 03 Aug 2008 18:08:31 GMT</pubDate>
</item>
<item>
  <title>URLRewriter最简单入门介绍 URLRewriter相关资源</title>
  <description><![CDATA[<br />3. 适用场合 IIS相关配置：<br /><br />默认只支持.net格式的重定向 比如：.aspx格式的重定向。<br />如：show_12_yongfa365.aspx  --&gt; show.aspx?id=12&amp;name=yonga365<br /><br />如果想实现，*.html这样的格式(一般我们就用这种方法实现.net 伪静态)<br />如：show_12_yongfa365.html  --&gt; show.aspx?id=12&amp;name=yonga365<br />]]></description>
  <link>http://www.yongfa365.com/Item/MSDN-URLRewriter-Intro-Download-.net.html</link>
  <pubDate>Thu, 24 Jul 2008 20:14:30 GMT</pubDate>
</item>
<item>
  <title>C# 上传图片，生成缩略图，生成文字或图像水印图</title>
  <description><![CDATA[        //处理原图片<br />        Graphics g = Graphics.FromImage(image);<br />        Font f = new Font(&quot;隶书&quot;, 16);<br />        Brush b = new SolidBrush(ColorTranslator.FromHtml(&quot;#FF0000&quot;));<br />        string addText = &quot;文字水印内容&quot;;<br />        g.DrawString(addText, f, b, 10, 10);<br />        g.DrawImageUnscaled(syimage, 50, 50);<br />        //g.DrawImage(newimage,50,50,100,100);<br />]]></description>
  <link>http://www.yongfa365.com/Item/GetThumbnailImage-DrawString-DrawImageUnscaled.html</link>
  <pubDate>Thu, 17 Jul 2008 14:34:07 GMT</pubDate>
</item>
<item>
  <title>正则表达式匹配 非XXX的行</title>
  <description><![CDATA[匹配非“非内容”的行的表达式应该写成：^(?!.*非内容).*$ ]]></description>
  <link>http://www.yongfa365.com/Item/ZhengZeBiaoDaShiPiPeiFeiXXXDeXing.html</link>
  <pubDate>Tue, 15 Jul 2008 21:55:45 GMT</pubDate>
</item>
<item>
  <title>配置数据源时出现： 未将对象引用设置到对象的实例。</title>
  <description><![CDATA[打开vs2005或vs2008, <br />新建网站，把ACCCESS数据库Copy到App_Data里， <br />拖&quot;AccessDataSource&quot;到窗口里， <br />配置数据源。。。 <br />选择数据库 <br />下一步 <br />sql语句里是空的，点“查询生成器...” <br />弹出： <br /><br />--------------------------- <br />Microsoft Visual Studio <br />--------------------------- <br />未将对象引用..]]></description>
  <link>http://www.yongfa365.com/Item/PeiZhiShuJuYuanShiChuXianWeiJiangDuiXiangYinYongSheZhiDaoDuiXiangDeShiLi.html</link>
  <pubDate>Mon, 16 Jun 2008 08:24:45 GMT</pubDate>
</item>
<item>
  <title>ASP转向ASP.net的一些经典讨论</title>
  <description><![CDATA[　　自2000年6月Microsoft公司发布.NET计划以来，使编程工作在业界中引起了一次划时代的革命。ASP.NET是.NET计划中的一个重要组成部分，其为Web应用程序开发人员提供了许多新特性，这些特性包括已编译的服务器端代码、一种将服务器端逻辑与客户端布局相分离的代码隐藏（code-behind）技术、可扩展的服务器端控件模型、设计数..]]></description>
  <link>http://www.yongfa365.com/Item/ASP2ASP.net.html</link>
  <pubDate>Wed, 11 Jun 2008 12:05:48 GMT</pubDate>
</item>
<item>
  <title>VS2008中文90天试用版改为正式版的两种方法</title>
  <description><![CDATA[1. 把Setup\setup.sdb文件中的<br />[Product Key]<br />T2CRQGDKBVW7KJR8C6CKXMW3D<br />   改成<br />[Product Key]<br /> PYHYPWXB3BB2CCMV9DX9VDY8T<br />2.安装完成后，在“控制面板”中启动“添加删除程序”,选中Vs2008，点击“更改、删除”， <br />输入序列号:PYHYP-WXB3B-B2CCM-V9DX9-VDY8T<br />注：<br />以上序列号为..]]></description>
  <link>http://www.yongfa365.com/Item/VS2008ZhongWen90TianShiYongBanGaiWeiZhengShiBanDeLiangZhongFangFa.html</link>
  <pubDate>Wed, 21 May 2008 10:48:40 GMT</pubDate>
</item>
<item>
  <title>C#中操作XML文件(读写改删全接触) 跟其它语言操作XML差不多一样</title>
  <description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;XmlDocument&nbsp;xmlDoc&nbsp;=&nbsp;new&nbsp;XmlDocument();<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.Load(&quot;bookstore.xml&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;//xmlDoc.LoadXml(&quot;&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;XmlNode&nbsp;root&nbsp;=&nbsp;xmlDoc.SelectSingleNode(&quot;bookstore&quot;);//查找<br />&nbsp;&nbsp;&nbsp;&nbsp;XmlElement&nbsp;xe1&nbsp;=&nbsp;xmlDoc.CreateElement(&quot;book&quot;);//创建一个节点<br />&nbsp;&nbsp;&nbsp;&nbsp;xe1.SetAttribute(&quot;genre&quot;,&nbsp;&quot;李赞红&quot;);//设置该节点genre属性<br />&nbsp;&nbsp;&nbsp;&nbsp;xe1.SetAttribute(&quot;ISBN&quot;,&nbsp;&quot;2-3631-4&quot;);//设置该节点ISBN属性<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;XmlElement&nbsp;xesub1&nbsp;=&nbsp;xmlDoc.CreateElement(&quot;title&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;xesub1.InnerText&nbsp;=&nbsp;&quot;CS从入门到精通&quot;;//设置文本节点<br />&nbsp;&nbsp;&nbsp;&nbsp;xe1.AppendChild(xesub1);//添加到节点中<br />&nbsp;&nbsp;&nbsp;&nbsp;XmlElement&nbsp;xesub2&nbsp;=&nbsp;xmlDoc.CreateElement(&quot;author&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;xesub2.InnerText&nbsp;=&nbsp;&quot;候捷&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xe1.AppendChild(xesub2);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;XmlElement&nbsp;xesub3&nbsp;=&nbsp;xmlDoc.CreateElement(&quot;price&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;xesub3.InnerText&nbsp;=&nbsp;&quot;58.3&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;xe1.AppendChild(xesub3);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;root.AppendChild(xe1);//添加到节点中<br />&nbsp;&nbsp;&nbsp;&nbsp;xmlDoc.Save(&quot;bookstore.xml&quot;);]]></description>
  <link>http://www.yongfa365.com/Item/CZhongCaoZuoXMLWenJianDuXieGaiShanQuanJieChuGenQiTaYuYanCaoZuoXMLChaBuDuoYiYang.html</link>
  <pubDate>Wed, 23 Apr 2008 20:53:17 GMT</pubDate>
</item>
<item>
  <title>C#中得到程序当前工作目录和执行目录的五种方法</title>
  <description><![CDATA[string&nbsp;str=&quot;&quot;;<br />str&nbsp;+=&nbsp;&quot;\r\n&quot;&nbsp;+&nbsp;System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;<br />str&nbsp;+=&nbsp;&quot;\r\n&quot;&nbsp;+&nbsp;System.Environment.CurrentDirectory;<br />str&nbsp;+=&nbsp;&quot;\r\n&quot;&nbsp;+&nbsp;System.IO.Directory.GetCurrentDirectory();<br />str&nbsp;+=&nbsp;&quot;\r\n&quot;&nbsp;+&nbsp;System.AppDomain.CurrentDomain.BaseDirectory;<br />str&nbsp;+=&nbsp;&quot;\r\n&quot;&nbsp;+&nbsp;System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;<br />str&nbsp;+=&nbsp;&quot;\r\n&quot;&nbsp;+&nbsp;System.Windows.Forms.Application.StartupPath;<br />str&nbsp;+=&nbsp;&quot;\r\n&quot;&nbsp;+&nbsp;System.Windows.Forms.Application.ExecutablePath;<br />Console.Write(str);<br />Console.ReadKey();]]></description>
  <link>http://www.yongfa365.com/Item/CZhongDeDaoChengXuDangQianGongZuoMuLuHeZhiXingMuLuDeYiXieFangFa.html</link>
  <pubDate>Wed, 23 Apr 2008 13:31:55 GMT</pubDate>
</item>
<item>
  <title>C# Split 的几种使用方法</title>
  <description><![CDATA[第一种方法：<br />string s=abcdeabcdeabcde;<br />string[] sArray=s.Split('c') ;<br />foreach(string i in sArray)<br />  Console.WriteLine(i.ToString());<br />输出下面的结果:<br />ab<br />deab<br />deab<br />de<br />第二种方法：<br />我们看到了结果是以一个指定的字符进行的分割。使用另一种构造方法对多个字符进行分割:<br />string s=&quot;abcdeabcdeabcde&quot;..]]></description>
  <link>http://www.yongfa365.com/Item/CSplitDeJiZhongShiYongFangFa.html</link>
  <pubDate>Wed, 23 Apr 2008 10:03:15 GMT</pubDate>
</item>
<item>
  <title>C#创建Windows服务(Windows Services) 实战之系统定时重启服务</title>
  <description><![CDATA[//服务器重启服务，作者：柳永法&nbsp;www.yongfa365.com<br />using&nbsp;System;<br />using&nbsp;System.Collections.Generic;<br />using&nbsp;System.ComponentModel;<br />using&nbsp;System.Data;<br />using&nbsp;System.Diagnostics;<br />using&nbsp;System.ServiceProcess;<br />using&nbsp;System.IO;<br />using&nbsp;System.Text;<br />using&nbsp;System.Timers;<br />]]></description>
  <link>http://www.yongfa365.com/Item/CChuangJianWindowsFuWuWindowsServicesShiZhanZhiXiTongDingShiZhongQiFuWu.html</link>
  <pubDate>Fri, 18 Apr 2008 16:19:26 GMT</pubDate>
</item>
<item>
  <title>C# 实现 int[]到string[]的转换方法 Array.ConvertAll</title>
  <description><![CDATA[using System;<br />using System.Collections.Generic;<br /><br />//int[]到string[]的转换<br />public class Example<br />{<br />    static void Main()<br />    {<br />        int[] int_array = { 1, 2, 3 };<br /><br />        string[] str_array = Array.ConvertAll(int_array, new Converter&lt;int, string&gt;(IntToString));<br /><br />        foreach (string s in str_array)<br />        {<br />            Console.WriteLine(s);<br />        }<br />        Console.Read();<br />    }<br /><br />    public static string IntToString(int i)<br />    {<br />        return i.ToString();<br />    }<br />}<br />]]></description>
  <link>http://www.yongfa365.com/Item/CShiXianintDaostringJistringDaointDeZhuanHuanFangFa.html</link>
  <pubDate>Fri, 18 Apr 2008 15:51:52 GMT</pubDate>
</item>
<item>
  <title>C#生成N个不重复随机数的两个函数</title>
  <description><![CDATA[<br />//演示<br /><br />using&nbsp;System;<br />using&nbsp;System.Collections.Generic;<br />using&nbsp;System.Text;<br />using&nbsp;System.Collections;<br /><br />namespace&nbsp;生成N个不重复随机数的两个函数<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;class&nbsp;Program<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;void&nbsp;Main(string[]&nbsp;args)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DateTime&nbsp;d1&nbsp;=&nbsp;System.DateTime.Now;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int[]..]]></description>
  <link>http://www.yongfa365.com/Item/CShengChengNGeBuZhongFuSuiJiShuDeLiangGeHanShu.html</link>
  <pubDate>Fri, 18 Apr 2008 15:22:26 GMT</pubDate>
</item>
<item>
  <title>[推荐]C# 如何消除字符串数组的重复项的函数</title>
  <description><![CDATA[public&nbsp;static&nbsp;String[]&nbsp;RemoveDup(String[]&nbsp;myData)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(myData.Length&nbsp;&gt;&nbsp;0)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Array.Sort(myData);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;size&nbsp;=&nbsp;1;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(int&nbsp;i&nbsp;=&nbsp;1;&nbsp;i&nbsp;&lt;&nbsp;myData.Length;&nbsp;i++)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(myData[i]&nbsp;!=&nbsp;myData[i&nbsp;-&nbsp;1])<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;size++;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String[]&nbsp;myTempData&nbsp;=&nbsp;new&nbsp;Str..]]></description>
  <link>http://www.yongfa365.com/Item/CRuHeXiaoChuZiFuChuanShuZuDeZhongFuXiangDeHanShu.html</link>
  <pubDate>Fri, 18 Apr 2008 11:57:25 GMT</pubDate>
</item>
<item>
  <title>C#实现网页截图功能</title>
  <description><![CDATA[<br />//需要添加System.Drawing及System.Windows.Forms引用<br />using&nbsp;System;<br />using&nbsp;System.Drawing;<br />using&nbsp;System.Drawing.Drawing2D;<br />using&nbsp;System.Drawing.Imaging;<br />using&nbsp;System.Windows.Forms;<br />namespace&nbsp;网页截图<br />{<br />&nbsp;class&nbsp;Program<br />&nbsp;{<br />&nbsp;[STAThread]<br />&nbsp;static&nbsp;void&nbsp;Main(string[]&nbsp;args)<br />&nbsp;{<br />&nbsp;string&nbsp;url&nbsp;=&nbsp;&quot;..]]></description>
  <link>http://www.yongfa365.com/Item/CShiXianWangYeJieTuGongNeng.html</link>
  <pubDate>Fri, 11 Apr 2008 11:52:11 GMT</pubDate>
</item>
<item>
  <title>[已解决]当前线程不在单线程单元中，因此无法实例化 ActiveX 控件</title>
  <description><![CDATA[昨天在调试一个：C#实现网页截图程序时出现下边这个提示<br />当前线程不在单线程单元中，因此无法实例化&nbsp;ActiveX&nbsp;控件“8856f961-340a-11d0-a96b-00c04fd705a2”。<br />一直找不出什么原因，本以为是命令行模式没法解决只能在form下操作，但怎么也想不明白，今天看一文章时突然看到<br />[STAThread]&nbsp;//这个跟线程有关，并..]]></description>
  <link>http://www.yongfa365.com/Item/YiJieJueDangQianXianChengBuZaiDanXianChengDanYuanZhongYinCiWuFaShiLiHuaActiveXKongJian.html</link>
  <pubDate>Fri, 11 Apr 2008 11:38:17 GMT</pubDate>
</item>
<item>
  <title>C#多线程简单例子</title>
  <description><![CDATA[<br />&nbsp;<br />using&nbsp;System;<br />using&nbsp;System.Collections.Generic;<br />using&nbsp;System.Text;<br />using&nbsp;System.Threading;<br />namespace&nbsp;线程练习<br />{<br />&nbsp;class&nbsp;Program<br />&nbsp;{<br />&nbsp;static&nbsp;void&nbsp;Main(string[]&nbsp;args)<br />&nbsp;{<br />&nbsp;Console.WriteLine(&quot;开始一个新的线程，名为次线程&quot;);<br />&nbsp;Thread&nbsp;t&nbsp;=&nbsp;new&nbsp;Thread(new&nbsp;ThreadStart(ThreadProc))..]]></description>
  <link>http://www.yongfa365.com/Item/CDuoXianChengJianDanLiZi.html</link>
  <pubDate>Thu, 10 Apr 2008 12:59:09 GMT</pubDate>
</item>
<item>
  <title>C#读取表某个表的字段</title>
  <description><![CDATA[<br />&nbsp;<br />//C#读取表某个表的字段<br />private&nbsp;void&nbsp;MSSQL_CONN()<br />{<br />&nbsp;//MSSQLSQL标准连接方式<br />&nbsp;string&nbsp;strConnection&nbsp;=&nbsp;&quot;user&nbsp;id=sa;password=yongfa365;initial&nbsp;catalog=Northwind;Server=yongfa365;Connect&nbsp;Timeout=30&quot;;<br />&nbsp;SqlConnection&nbsp;conn&nbsp;=&nbsp;new&nbsp;SqlConnection(strConnection);<br />&nbsp;conn.Open();<br />&nbsp;SqlComma..]]></description>
  <link>http://www.yongfa365.com/Item/CDuQuBiaoMouGeBiaoDeZiDuan.html</link>
  <pubDate>Mon, 07 Apr 2008 17:13:32 GMT</pubDate>
</item>
<item>
  <title>[已解决]ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。</title>
  <description><![CDATA[ExecuteReader&nbsp;要求已打开且可用的连接。连接的当前状态为已关闭。,<br />很可能的原因是:<br />OleDbConnection&nbsp;conn=new&nbsp;OleDbConnection(&quot;Provider=Microsoft.Jet.OLEDB.4.0;Data&nbsp;source=&quot;+Server.MapPath(&quot;XXX.mdb&quot;));&nbsp;<br />OleDbDataAdapter&nbsp;mydata=new&nbsp;OleDbDataAdapter(_sql,conn);&nbsp;<br />conn.Open()&nbsp;//这句..]]></description>
  <link>http://www.yongfa365.com/Item/YiJieJueExecuteReaderYaoQiuYiDaKaiQieKeYongDeLianJieLianJieDeDangQianZhuangTaiWeiYiGuanBi.html</link>
  <pubDate>Mon, 07 Apr 2008 13:53:59 GMT</pubDate>
</item>
<item>
  <title>C#正则表达式初次尝试</title>
  <description><![CDATA[感觉C#的正则表达式用起来还是方便些，VBS正则必须得先建一个类的实例。而C#可以直接使用Regex,这个叫静态类，可以直接使用，具体怎么讲以后慢慢学。<br /><br />要使用正则表达式得先：<br />using&nbsp;System.Text;<br />using&nbsp;System.Text.RegularExpressions;<br />]]></description>
  <link>http://www.yongfa365.com/Item/CZhengZeBiaoDaShiChuCiChangShi.html</link>
  <pubDate>Fri, 04 Apr 2008 21:07:18 GMT</pubDate>
</item>
<item>
  <title>C#读写文件的自定义函数，写文件不全的问题的解决方法</title>
  <description><![CDATA[/// &lt;summary&gt;<br />/// winform 读文件 by www.yongfa365.com<br />/// &lt;/summary&gt;<br />/// &lt;param name=&quot;filename&quot;&gt;默认读取的文件名&lt;/param&gt;<br />/// &lt;returns&gt;&lt;/returns&gt;<br />public string ReadFile(string filename)<br />{<br />    ////////////////////////读文件操作////////////////////////<br />    string html = &quot;&quot;;<br />    OpenFileDialog dlg = new OpenFileDialog();<br />    dlg.Title = &quot;打开一个文本文件&quot;;<br />    dlg.FileName = filename;<br />    dlg.Filter = &quot;所有文件(*.*)|*.*|文本文件 (*.txt)|*.txt;*.ini;*.sql&quot;;<br />    if (dlg.ShowDialog() == DialogResult.OK)<br />    {<br />        filename = dlg.FileName;<br />        StreamReader din = new StreamReader(filename, System.Text.Encoding.Default);<br />        while (din.Peek() &gt; -1)<br />        {<br />            html = html + din.ReadToEnd();<br />        }<br />        din.Close();<br />    }<br />    return html;<br />}]]></description>
  <link>http://www.yongfa365.com/Item/CsharpDuXieWenJianZiDingYiHanShuXieWenJianBuQuanDeWenTiDeJieJueFangFa.html</link>
  <pubDate>Fri, 04 Apr 2008 17:36:53 GMT</pubDate>
</item>
<item>
  <title>C#判断文件编码的类 虽然有很大缺陷，但目前只能这样了</title>
  <description><![CDATA[//编码问题目前为止，基本上没人解决，就连windows的IE的自动识别有时还识别错编码呢。--yongfa365<br />//如果文件有BOM则判断，如果没有就用系统默认编码，缺点：没有BOM的非系统编码文件会显示乱码。<br />//调用方法：&nbsp;EncodingType.GetType(filename)<br />//来源：http://blog.csdn.net/listlofusage/archive/2007/02/10/1506900.aspx<br />]]></description>
  <link>http://www.yongfa365.com/Item/CsharpEncodingPanDuanWenJianBianMaDeLeiSuiRanYouHenDaQueXianDanMuQianZhiNengZheYangLiao.html</link>
  <pubDate>Fri, 04 Apr 2008 17:20:39 GMT</pubDate>
</item>
<item>
  <title>[汇总]如何有效的使用C#读取文件 及如何解决中文乱码问题</title>
  <description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;StreamReader&nbsp;din&nbsp;=&nbsp;new&nbsp;StreamReader(@&quot;C:\1.txt&quot;,&nbsp;System.Text.Encoding.GetEncoding(&quot;gb2312&quot;));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;html&nbsp;=&nbsp;&quot;&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(din.Peek()&nbsp;&gt;&nbsp;-1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html&nbsp;=&nbsp;html&nbsp;+&nbsp;din.ReadToEnd();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;din.Close();]]></description>
  <link>http://www.yongfa365.com/Item/HuiZongRuHeYouXiaoDeShiYongCDuQuWenJianJiRuHeJieJueZhongWenLuanMaWenTi.html</link>
  <pubDate>Fri, 04 Apr 2008 15:00:12 GMT</pubDate>
</item>
<item>
  <title>Visual Studio 2005、Visual Studio 2008常用快捷键</title>
  <description><![CDATA[柳永法 最常用的快捷键<br /><br />Alt + Shift + Enter 全屏，第二次退出全屏<br /><br />Ctrl + E,D <br />Ctrl + K,D 格式化当前所有代码<br /><br />Ctrl + E,F <br />Ctrl + K,F 格式化选中代码<br /><br />Ctrl + E,C<br />Ctrl + K,C 批量注释<br /><br />Ctrl + E,U<br />Ctrl + K,U 批量取消注释<br /><br />Ctr + Shift + U<br />Ctr + U<br />对选定的字符串进行大写小写的切换.<br /><br />F7 从设计模式到代码模式<br />Shift + F7 从代码模式到设计模式<br /><br /><br />在任意位置：Ctrl + Enter，当前行上边加一空行，同时光标定位<br />在任意位置：Ctrl + Shift + Enter，当前行下边加一空行，同时光标定位<br /><br />Ctrl + K + K ：收藏(Bookmark)<br /><br />F5调试<br />Shift + F5 退出调试<br /><br />Ctr+G 查找某行。<br />]]></description>
  <link>http://www.yongfa365.com/Item/Visual-Studio-2005-2008-Shortcut.html</link>
  <pubDate>Fri, 04 Apr 2008 14:34:15 GMT</pubDate>
</item>
<item>
  <title>System.Diagnostics.Process.Start</title>
  <description><![CDATA[private&nbsp;void&nbsp;linkLabel1_LinkClicked(object&nbsp;sender,&nbsp;LinkLabelLinkClickedEventArgs&nbsp;e)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;System.Diagnostics.Process.Start(&quot;Iexplore.exe&quot;,&nbsp;&quot;http://www.yongfa365.com&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;//在当前窗口打开<br />&nbsp;&nbsp;&nbsp;&nbsp;//System.Diagnostics.Process.Start(&quot;http://www.yongfa365.com&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;//如果在新窗口中打开可以加上要执行的文件及参数的形式<br />&nbsp;&nbsp;&nbsp;&nbsp;//System.Diagnostics.Process.Start(&quot;Iexplore.exe&quot;,&nbsp;&quot;http://www.csdn.net&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;//System.Diagnostics.Process.Start(&quot;cmd&quot;,&nbsp;&quot;/k&nbsp;echo&nbsp;'ok'&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;//System.Diagnostics.Process.Start(&quot;explorer&quot;,&nbsp;&quot;C:\\windows\\system32&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;//System.Diagnostics.Process.Start(&quot;shutdown&quot;,&quot;/l&quot;);//------------注销计算机<br />&nbsp;&nbsp;&nbsp;&nbsp;//System.Diagnostics.Process.Start(&quot;shutdown&quot;,&quot;/r&quot;);//------------重起计算机<br />}]]></description>
  <link>http://www.yongfa365.com/Item/System.Diagnostics.Process.Start.html</link>
  <pubDate>Thu, 03 Apr 2008 13:33:02 GMT</pubDate>
</item>
<item>
  <title>C# .net 采集类</title>
  <description><![CDATA[<br />using System;<br />using System.Collections.Generic;<br />using System.Text;<br />using System.Diagnostics;<br />using System.Text.RegularExpressions;<br />using System.IO;<br />using System.Net;<br /><br />namespace 采集测试<br />{<br />    class Program<br />    {<br />        static void Main(string[] args)<br />        {<br />            string[]..]]></description>
  <link>http://www.yongfa365.com/Item/C.netCaiJiLei.html</link>
  <pubDate>Sun, 04 May 2008 17:47:15 GMT</pubDate>
</item>
</channel></rss>
