摘要: 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...
阅读全文
摘要: -----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 =...
阅读全文
摘要: 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...
阅读全文
摘要: 从逻辑上来说,Click 事件是控件的更高级别的事件。它们通常由其他操作引发,例如当焦点在控件上时按 Enter 键。 命名空间:System.Windows.Forms程序集:System.Windows.Forms(在system.windows.forms.dll中)public event EventHandler DoubleClickpublic event MouseEventHan...
阅读全文
摘要: 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 ...
阅读全文
摘要: Attribute的基本概念 经常有朋友问,Attribute是什么?它有什么用?好像没有这个东东程序也能运行。实际上在.Net中,Attribute是一个非常重要的组成部分,为了帮助大家理解和掌握Attribute,以及它的使用方法,特地收集了几个Attribute使用的例子,提供给大家参考。 在具体的演示之前,我想先大致介绍一下Attribute。我们知道在类的成员中有property成员,二...
阅读全文
摘要: here is some meterias for it and it's really helpful.
阅读全文
摘要: //Test Code//C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.configstring dd = System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;//C:\WINDOWS\Microsoft.NET\Framewo...
阅读全文
摘要: web2.0以后,页面引入了MasterPage的概念,页面的生命周期也越来越复杂,页面大抵可以分为MasterPage,MasterPageControl,page,pageControl四个部分,他们的生命周期为:MasterPageControl Init 事件。PageControl Init 事件。MasterPage Init 事件。Page Init 事件。Page Load 事件。...
阅读全文
摘要: 你有一个list,格式如list<userType>, 但是这个userType并没有继承自ICompare或者IComparable 等,那如何给这个list排序那?指定一个类 这个类要继承自ICompare<userType>如publicclassSortUserGroup:IComparer<UserGroup>{/**////<summary&g...
阅读全文