<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_笨笨【贲志强】</title><subtitle type="text">让梦想飞的更高……</subtitle><id>http://feed.cnblogs.com/blog/u/22293/rss</id><updated>2011-02-16T02:33:59Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/22293/rss"/><entry><id>http://www.cnblogs.com/benben7466/archive/2009/11/06/1597243.html</id><title type="text">C#判断一个string是否可以为数字,五种解决方案</title><summary type="text">判断一个string是否可以为数字方案一：Try...Catch(执行效率不高)/// /// 名称：IsNumberic/// 功能：判断输入的是否是数字/// 参数：string oText：源文本/// 返回值：bool true:是false:否/// /// /// private bool IsNumberic(string oText){try {int var1=Convert...</summary><published>2009-11-06T02:40:00Z</published><updated>2009-11-06T02:40:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/11/06/1597243.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/11/06/1597243.html"/><content type="text">判断一个string是否可以为数字方案一：Try...Catch(执行效率不高)/// /// 名称：IsNumberic/// 功能：判断输入的是否是数字/// 参数：string oText：源文本/// 返回值：bool true:是false:否/// /// /// private bool IsNumberic(string oText){try {int var1=Convert...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/10/29/1592469.html</id><title type="text">SQLServer 2005中分页的解决方案</title><summary type="text">SQLServer 2005中分页的解决方案 代码如下： 例如：</summary><published>2009-10-29T10:06:00Z</published><updated>2009-10-29T10:06:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/10/29/1592469.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/10/29/1592469.html"/><content type="text">SQLServer 2005中分页的解决方案 代码如下： 例如：</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/08/06/1540035.html</id><title type="text">c# webbrowser 加载网页出错解决方法</title><summary type="text">一、屏蔽脚本错误提示(转)c# webbrowser 加载网页出错解决方法2009-03-25 19:42当IE浏览器遇到脚本错误时浏览器，左下角会出现一个黄色图标，点击可以查看脚本错误的详细信息，并不会有弹出的错误信息框。当我们使用WebBrowser控件时有错误信息框弹出，这样程序显的很不友好，而且会让一些自动执行的程序暂停。我看到有人采取的解决方案是做一个窗体杀手程序来关闭弹出的窗体。今天探...</summary><published>2009-08-06T00:15:00Z</published><updated>2009-08-06T00:15:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/08/06/1540035.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/08/06/1540035.html"/><content type="text">一、屏蔽脚本错误提示(转)c# webbrowser 加载网页出错解决方法2009-03-25 19:42当IE浏览器遇到脚本错误时浏览器，左下角会出现一个黄色图标，点击可以查看脚本错误的详细信息，并不会有弹出的错误信息框。当我们使用WebBrowser控件时有错误信息框弹出，这样程序显的很不友好，而且会让一些自动执行的程序暂停。我看到有人采取的解决方案是做一个窗体杀手程序来关闭弹出的窗体。今天探...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/08/01/1536434.html</id><title type="text">C#怎样关闭所有的IE窗口</title><summary type="text">window.close();System.Diagnostics.Process[] myProcesses; myProcesses = System.Diagnostics.Process.GetProcessesByName("IEXPLORE"); foreach (System.Diagnostics.Process instance in myProcesses) { ...</summary><published>2009-08-01T03:37:00Z</published><updated>2009-08-01T03:37:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/08/01/1536434.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/08/01/1536434.html"/><content type="text">window.close();System.Diagnostics.Process[] myProcesses; myProcesses = System.Diagnostics.Process.GetProcessesByName("IEXPLORE"); foreach (System.Diagnostics.Process instance in myProcesses) { ...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/07/22/1528297.html</id><title type="text">C# GET、POST方式请求web</title><summary type="text">private string GetModel(string strUrl) { string strRet = null; try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strUrl); request.Timeout = 2000; HttpWebResponse response = (HttpWebResp...</summary><published>2009-07-22T00:38:00Z</published><updated>2009-07-22T00:38:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/07/22/1528297.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/07/22/1528297.html"/><content type="text">private string GetModel(string strUrl) { string strRet = null; try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strUrl); request.Timeout = 2000; HttpWebResponse response = (HttpWebResp...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/07/22/1528281.html</id><title type="text">C# Url传递中文 转义编码</title><summary type="text">百度的编码System.Web.HttpUtility.UrlEncode( "中文 ", System.Text.UnicodeEncoding.GetEncoding( "GB2312 ")).ToUpper()Google的编码System.Web.HttpUtility.UrlEncode( "中文 ")得到值System.Web.HttpUtility.UrlDecode( "%BA%A...</summary><published>2009-07-21T23:42:00Z</published><updated>2009-07-21T23:42:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/07/22/1528281.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/07/22/1528281.html"/><content type="text">百度的编码System.Web.HttpUtility.UrlEncode( "中文 ", System.Text.UnicodeEncoding.GetEncoding( "GB2312 ")).ToUpper()Google的编码System.Web.HttpUtility.UrlEncode( "中文 ")得到值System.Web.HttpUtility.UrlDecode( "%BA%A...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/07/16/1525221.html</id><title type="text">C#中如何去除或屏蔽窗体默认的关闭按钮</title><summary type="text">很多时候，在winform的设计下，会遇到新建窗体时不需要用到默认的关闭按钮的情况，而是用另外设置关闭 button或其他控件来控制窗体的关闭。 之前我遇到这个问题时，问了很多朋友，都没找到方法，VS的窗体属性里也没那一项，在MSDN里也没有相关的资料。 但后来偶然发现，原来办法是很简单的，只需要在初始化窗体的时候不显示那关闭按钮就可以了。 具体方法是，加上一句 “ this.Cont...</summary><published>2009-07-16T15:49:00Z</published><updated>2009-07-16T15:49:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/07/16/1525221.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/07/16/1525221.html"/><content type="text">很多时候，在winform的设计下，会遇到新建窗体时不需要用到默认的关闭按钮的情况，而是用另外设置关闭 button或其他控件来控制窗体的关闭。 之前我遇到这个问题时，问了很多朋友，都没找到方法，VS的窗体属性里也没那一项，在MSDN里也没有相关的资料。 但后来偶然发现，原来办法是很简单的，只需要在初始化窗体的时候不显示那关闭按钮就可以了。 具体方法是，加上一句 “ this.Cont...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/07/16/1525169.html</id><title type="text">c#怎么捕捉非窗体上的鼠标事件</title><summary type="text">全局钩子 public class HookMessage { private IntPtr m_HookEx; /// &lt;summary&gt; /// 设置自己进程的钩子 /// &lt;/summary&gt; /// &lt;param name="p_HookCodes"&gt;钩子类型 &lt;/param&gt; public HookMessage(WindowsHookCo...</summary><published>2009-07-16T13:54:00Z</published><updated>2009-07-16T13:54:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/07/16/1525169.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/07/16/1525169.html"/><content type="text">全局钩子 public class HookMessage { private IntPtr m_HookEx; /// &lt;summary&gt; /// 设置自己进程的钩子 /// &lt;/summary&gt; /// &lt;param name="p_HookCodes"&gt;钩子类型 &lt;/param&gt; public HookMessage(WindowsHookCo...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/07/10/1520748.html</id><title type="text">c# Settings.settings 设置</title><summary type="text">1、定义在Settings.settings文件中定义配置字段。把作用范围定义为：User则运行时可更改，Applicatiion则运行时不可更改。可以使用数据网格视图，很方便；2、读取配置值text1.text = Properties.Settings.Default.FieldName;//FieldName是你定义的字段3、修改和保存配置Properties.Settings.Defaul...</summary><published>2009-07-10T11:27:00Z</published><updated>2009-07-10T11:27:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/07/10/1520748.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/07/10/1520748.html"/><content type="text">1、定义在Settings.settings文件中定义配置字段。把作用范围定义为：User则运行时可更改，Applicatiion则运行时不可更改。可以使用数据网格视图，很方便；2、读取配置值text1.text = Properties.Settings.Default.FieldName;//FieldName是你定义的字段3、修改和保存配置Properties.Settings.Defaul...</content></entry><entry><id>http://www.cnblogs.com/benben7466/archive/2009/07/10/1520724.html</id><title type="text">C# Winform 只能运行一个实例</title><summary type="text">这里列举了比较常见的方法：1、static void Main() { bool initiallyOwned = true; bool isCreated; Mutex m = new Mutex(initiallyOwned,"MyTest",out isCreated); if (!(initiallyOwned &amp;&amp; isCreated)) { MessageBox.Sho...</summary><published>2009-07-10T09:53:00Z</published><updated>2009-07-10T09:53:00Z</updated><author><name>笨笨真笨</name><uri>http://www.cnblogs.com/benben7466/</uri></author><link rel="alternate" href="http://www.cnblogs.com/benben7466/archive/2009/07/10/1520724.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/benben7466/archive/2009/07/10/1520724.html"/><content type="text">这里列举了比较常见的方法：1、static void Main() { bool initiallyOwned = true; bool isCreated; Mutex m = new Mutex(initiallyOwned,"MyTest",out isCreated); if (!(initiallyOwned &amp;&amp; isCreated)) { MessageBox.Sho...</content></entry></feed>
