C# 多线程操作TreeView
摘要:添加委托:然后在要添加节点的地方这样写:其他操作雷同。
阅读全文
posted @
2010-09-25 20:47
dflower
阅读(828)
推荐(1)
.net 的StringComparison
摘要:namespace System{public enum StringComparison {CurrentCulture,CurrentCultureIgnoreCase,InvariantCulture,InvariantCultureIgnoreCase,ordinal,ordinalIgnoreCase}}可能大家平时在进行字符串比较的时候根本没有考虑那么多,"= =","Eaqual()...
阅读全文
posted @
2010-03-21 14:01
dflower
阅读(610)
推荐(0)
C#中timer类的用法
摘要:关于C#中timer类 在C#里关于定时器类就有3个 1.定义在System.Windows.Forms里 2.定义在System.Threading.Timer类里 3.定义在System.Timers.Timer类里 System.Windows.Forms.Timer是应用于WinForm中的,它是通过Windows消息机制实现的,类似于VB或Delphi中的Timer控件,内部使用API ...
阅读全文
posted @
2010-01-30 12:25
dflower
阅读(301)
推荐(0)
Oracle 中的to_date格式
摘要:TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 显示值:2007 Month: mm number 两位月 显示值:11 mon abbreviated 字符集表示 显示值:11月,若是英文版,显示nov...
阅读全文
posted @
2009-12-11 12:58
dflower
阅读(252)
推荐(0)
C#的String.Split方法
摘要:String.Split 方法有6个重载函数:1) public string[] Split(params char[] separator)2) public string[] Split(char[] separator, int count)3) public string[] Split(char[] separator, StringSplitOptions options)4) pu...
阅读全文
posted @
2009-11-09 16:09
dflower
阅读(386)
推荐(0)
C#在64位操作系统上连接Oracle的问题和解决方案
摘要:C#使用System.Data.OracleClient连接Oracle数据库。之前在WinXP上正常运行的程序移植到Windows 2008 x64上之后就连不上数据库了,错误信息如下: 尝试加载Oracle客户端库时引发BadImageFomatException。如果在安装32位Oracle客户端组件的情况下以64位模式运行,将出现此问题。 错误原因是原来WinXP机子上所安装的Orac...
阅读全文
posted @
2009-11-02 18:00
dflower
阅读(7813)
推荐(0)
.net调试WEB程序时页面无法显示的原因分析及解决办法
摘要:用VS2008开发网站项目时,按F5调试,居然出现页面无法显示,以下是常见的两种症状和解决方法:症状一: IE地址栏里面显示的端口号和桌面任务栏右下角“ASP.NET Development Server”的端口不一致,而把IE地址栏的端口号改成“ASP.NET Development Server”显示的端口号,结果网页就能出来。解决方法:引用原...
阅读全文
posted @
2009-10-05 14:35
dflower
阅读(1070)
推荐(0)
C# 获取当前周WeekOfYear的方法
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->static int GetWeekOfYear() { CultureInfo ci = new CultureInfo("zh-CN"); S...
阅读全文
posted @
2009-04-15 14:42
dflower
阅读(1559)
推荐(0)