上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: 在开发多线程程序时,通常非UI线程中需要操作主线程中的控件,此时如果直接调用控件的属性有可能会出错,需要调用控件的Invoke方法。Invoke方法的原型:[代码]通常的使用方法是:先定义一个委托,public delegate void UpdateUIDelegate(object p1,object p2)[代码]p1,p2是传入的参数。另一种写法:利用匿名方法,或者lambda表达式的写法... 阅读全文
posted @ 2009-10-15 10:52 代码乱了 阅读(1508) 评论(1) 推荐(1)
摘要: 很多时候需要在查询时产生顺序的数字记录,下面两个方法非常实用:1.利用系统表[代码]1000000可以替换成更大或更小的数 2.利用CTE[代码]同样@UpperLimit可以修改成其他数字。 阅读全文
posted @ 2009-10-09 09:57 代码乱了 阅读(893) 评论(0) 推荐(0)
摘要: Paul Mason (via Chris Alcock)几篇关于保护源码和利用Cecil混淆演示的文章Protecting your precious code!, Protecting your precious code! - Part 2, Protecting your precious code – Obfuscation, Protecting your precious... 阅读全文
posted @ 2009-09-04 21:03 代码乱了 阅读(366) 评论(0) 推荐(0)
摘要: Configuration Section Designer是什么?A Visual Studio add-in that allows you to graphically design .NET Configuration Sections and automatically generates all the required code and a schema definition (XS... 阅读全文
posted @ 2009-08-29 16:47 代码乱了 阅读(873) 评论(0) 推荐(0)
摘要: 很好奇SQL Doc是怎么获取数据库所有表的信息,比如数据库下的所以表名,表的字段信息,字段是否为空,关系,索引信息等,于是用Sql Profiler监视一下,果然是厉害,其实如果要做数据库实体类代码生成,ORM都有可能用到 阅读全文
posted @ 2009-08-15 17:57 代码乱了 阅读(2913) 评论(10) 推荐(3)
摘要: [代码] 阅读全文
posted @ 2009-08-12 09:36 代码乱了 阅读(547) 评论(0) 推荐(0)
摘要: [代码] 阅读全文
posted @ 2009-08-07 11:28 代码乱了 阅读(896) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2009-07-28 11:01 代码乱了 阅读(30) 评论(0) 推荐(0)
摘要: [代码] 阅读全文
posted @ 2009-07-20 10:52 代码乱了 阅读(819) 评论(3) 推荐(0)
摘要: 一直很好奇,为什么单选框取名叫radio button,查了一下,维基百科是这样说的:A radio button or option button is a type of graphical user interface element that allows the user to choose only one of a predefined set of options (that's ... 阅读全文
posted @ 2009-07-18 10:49 代码乱了 阅读(1469) 评论(4) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页