sleeping

每天进步一点点!

常用链接

统计

最新评论

2009年8月4日 #

Is it possible to change the text color of readonly items in a PropertyGrid ?

摘要: I've experimented with the ViewForeColor property but it appears to only apply to editable items. I'd like to make Readonly items appear in a different color than the standard light gray. ViewForeCo...阅读全文

posted @ 2009-08-04 14:22 vivien 阅读(37) 评论(0) 编辑

2009年3月20日 #

the values of Windows Message

摘要: -----Original Message----- WM_NULL = 0x0000, WM_CREATE = 0x0001, WM_DESTROY = 0x0002, WM_MOVE = 0x0003, WM_SIZE = 0x0005, WM_ACTIVATE = 0x0006, WM_SETFOCUS = 0x0007, WM_KILLFOCUS = 0x0008, WM_ENABLE =...阅读全文

posted @ 2009-03-20 09:35 vivien 阅读(32) 评论(0) 编辑

2009年2月24日 #

DataGridViewComboBox blacks out when using EditingControlShowing event

摘要: I have a DataGridView in C# windows application which uses .NET 2.0. The gridview has a combobox cell, two textbox cells. I have written EditingControlShowing event handler to add a SelectedIndexChang...阅读全文

posted @ 2009-02-24 13:24 vivien 阅读(163) 评论(0) 编辑

2009年2月17日 #

Winform Click and Mouse Event (转)

摘要: 从逻辑上来说,Click 事件是控件的更高级别的事件。它们通常由其他操作引发,例如当焦点在控件上时按 Enter 键。 命名空间:System.Windows.Forms程序集:System.Windows.Forms(在system.windows.forms.dll中)public event EventHandler DoubleClickpublic event MouseEventHan...阅读全文

posted @ 2009-02-17 11:20 vivien 阅读(529) 评论(0) 编辑

2009年2月13日 #

TextChanged Event of ComboBox

摘要: I found something interesting today.If a comboBox has DataSource value, it's TextChanged eventdoesn'tbe triggered when you change the selections, BUT, if you change its SelectedItem and SelectedIndex ...阅读全文

posted @ 2009-02-13 16:58 vivien 阅读(110) 评论(0) 编辑

2008年12月17日 #

C# Attribute在.net编程中的应用 (转)

摘要: Attribute的基本概念 经常有朋友问,Attribute是什么?它有什么用?好像没有这个东东程序也能运行。实际上在.Net中,Attribute是一个非常重要的组成部分,为了帮助大家理解和掌握Attribute,以及它的使用方法,特地收集了几个Attribute使用的例子,提供给大家参考。 在具体的演示之前,我想先大致介绍一下Attribute。我们知道在类的成员中有property成员,二...阅读全文

posted @ 2008-12-17 12:22 vivien 阅读(1657) 评论(1) 编辑

2008年5月21日 #

A Single Instance Application which Minimizes to the System Tray

摘要: here is some meterias for it and it's really helpful.阅读全文

posted @ 2008-05-21 15:28 vivien 阅读(82) 评论(0) 编辑

2008年3月4日 #

获取当前FrameWork的一些信息

摘要: //Test Code//C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.configstring dd = System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;//C:\WINDOWS\Microsoft.NET\Framewo...阅读全文

posted @ 2008-03-04 17:18 vivien 阅读(80) 评论(0) 编辑

2008年1月15日 #

页面的生命周期

摘要: web2.0以后,页面引入了MasterPage的概念,页面的生命周期也越来越复杂,页面大抵可以分为MasterPage,MasterPageControl,page,pageControl四个部分,他们的生命周期为:MasterPageControl Init 事件。PageControl Init 事件。MasterPage Init 事件。Page Init 事件。Page Load 事件。...阅读全文

posted @ 2008-01-15 09:28 vivien 阅读(257) 评论(0) 编辑

2008年1月8日 #

给List排序( list sort)

摘要: 你有一个list,格式如list<userType>, 但是这个userType并没有继承自ICompare或者IComparable 等,那如何给这个list排序那?指定一个类 这个类要继承自ICompare<userType>如publicclassSortUserGroup:IComparer<UserGroup>{/**////<summary&g...阅读全文

posted @ 2008-01-08 15:01 vivien 阅读(4351) 评论(0) 编辑