摘要: 引用:http://msdn.microsoft.com/zh-cn/library/ms754356.aspx TextBox.Text 属性的默认 UpdateSourceTrigger 值为 LostFocus。这意味着如果应用程序的 TextBox 包含数据绑定 TextBox.Text 属性,则直到 TextBox 失去焦点(例如,将鼠标移到 TextBox 外单击... 阅读全文
posted @ 2008-08-25 11:08 酷歌 阅读(322) 评论(0) 推荐(0)
摘要: Getting Started with F# F#下载地址:http://research.microsoft.com/fsharp/fsharp.aspx F# 是函数式编程语言,它是一系统的绑定的标识符表达式。程序如下: let x = 3 + (4 * 5) let res = (if x = 23 then "correct" else "incorrect") ... 阅读全文
posted @ 2008-08-01 16:32 酷歌 阅读(249) 评论(0) 推荐(0)
摘要: 1. 标准的win32窗口程序 相信熟悉windows编程的朋友,对于使用win32 api开发窗口应用程序一定不陌生。 下面的程序是从资源文件中加载一个图片并显示在窗口中。 #include #include "resource.h" TCHAR szClassName[] = TEXT("WIN32TEST"); HBITMAP hBmp; LRESULT CALLBACK... 阅读全文
posted @ 2008-07-23 03:30 酷歌 阅读(464) 评论(0) 推荐(0)
摘要: http://www.sellsbrothers.com/tools/This is a set of .NET, COM and Win32 tools that Chris Sells has built and contributed to the world. You may use them without royalty (and without support) in y... 阅读全文
posted @ 2008-07-18 15:33 酷歌 阅读(159) 评论(0) 推荐(0)
摘要: 获取网页内容(生成html页) 阅读全文 类别:默认分类 查看评论 阅读全文
posted @ 2008-07-18 15:33 酷歌 阅读(161) 评论(0) 推荐(0)
摘要: 经常过碰到这样的问题:程序在长时间加载或运算的时候界面会反应迟钝,处于无响应状态。如何才能防止程序(界面)的假死状态呢?一种方式是采用多线程,让长时间运算的程序在后台运行。另一种方式是单线程程序可以使用 阅读全文 类别:默认分类 查看评论 阅读全文
posted @ 2008-07-18 15:33 酷歌 阅读(268) 评论(0) 推荐(0)
摘要: 引:http://www.duduwolf.com/cmd.asp?act=tb&id=235 目录1 Pure Javascript: Application Frameworks1.1 Bindows 1.2 BackBase 阅读全文 类别:默认分类 查看评论 阅读全文
posted @ 2008-07-18 15:33 酷歌 阅读(131) 评论(0) 推荐(0)
摘要: ReadOnlyCollection 泛型类的实例总是只读的。只读集合只是一个具有用于防止修改的包装的集合;因此,如果更改基础集合,则只读集合将反映那些更改。 using System; using System.Collections.Generic; using System.Collections.ObjectModel; public class Example { ... 阅读全文
posted @ 2008-07-18 15:33 酷歌 阅读(367) 评论(0) 推荐(0)
摘要: 下面的代码示例演示如何实现自定义集合的 IEnumerable 和 IEnumerator 接口。在此示例中,没有显式调用这些接口的成员,但实现了它们,以便支持使用 foreach(在 Visual Basic 中为 for each)循环访问该集合。 using System; using System.Collections; public class Person { p... 阅读全文
posted @ 2008-07-18 15:33 酷歌 阅读(136) 评论(0) 推荐(0)
摘要: params 关键字可以指定在参数数目可变处采用参数的方法参数。 在方法声明中的 params 关键字之后不允许任何其他参数,并且在方法声明中只允许一个 params 关键字。 阅读全文 类别:c# 语言参考 查看评论 阅读全文
posted @ 2008-07-18 15:33 酷歌 阅读(316) 评论(0) 推荐(0)