<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_潇湘隐者_分类_WinForm</title><id>http://feed.cnblogs.com/blog/u/57955/category/239433/rss</id><updated>2012-06-03T14:24:08Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kerrycode/category/239433.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/57955/category/239433/rss"/><entry><id>http://www.cnblogs.com/kerrycode/archive/2011/03/07/1973395.html</id><title type="text">WinForm的ComboBox禁止用户输入方法</title><summary type="text">Combobox禁止用户输入时，只需将DropDownStyle属性设为DropDownList，它默认的属性设置是DropDown。DropDownStyle 的属性设置分为Simple、DropDown、DropDownList三种方式1：Simple 类似TextBox的外观，文本部分可以编辑，控件的Text值可显示，Items中的项要靠键盘“↑”、“↓”来选择。2：DropDown 文本部分可以编辑，控件的Text值可显示，Items中的项通过点击控件的“▼”出现的下拉选择框来选择。3：DropDownList 文本部分不可编辑，不能设置控件的Text值，Items中的项通过点击控件的</summary><published>2011-03-07T03:26:00Z</published><updated>2011-03-07T03:26:00Z</updated><author><name>潇湘隐者</name><uri>http://www.cnblogs.com/kerrycode/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kerrycode/archive/2011/03/07/1973395.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kerrycode/archive/2011/03/07/1973395.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/kerrycode/archive/2010/03/29/1681751.html</id><title type="text">WinForm系列——控件的输入限制</title><summary type="text">在.NET WinForm开发中，我们时常需要控制一些控件的输入。比如某个TextBox用来输入产品的数量，只能输入数字;某个ComboBox表示支付方式：现金(M)、信用卡(C)、支票(P)等。用鼠标选择支付方式当然没有问题。但是有时候用户可能是手动输入，那么我们不希望用户手动输入时，输入非法的字母。所以必须控制用户只输入这三个字母，而且必须是大写的。那么下面就Textbox和ComboBox这...</summary><published>2010-03-29T09:59:00Z</published><updated>2010-03-29T09:59:00Z</updated><author><name>潇湘隐者</name><uri>http://www.cnblogs.com/kerrycode/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kerrycode/archive/2010/03/29/1681751.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kerrycode/archive/2010/03/29/1681751.html"/><content type="text">在.NET WinForm开发中，我们时常需要控制一些控件的输入。比如某个TextBox用来输入产品的数量，只能输入数字;某个ComboBox表示支付方式：现金(M)、信用卡(C)、支票(P)等。用鼠标选择支付方式当然没有问题。但是有时候用户可能是手动输入，那么我们不希望用户手动输入时，输入非法的字母。所以必须控制用户只输入这三个字母，而且必须是大写的。那么下面就Textbox和ComboBox这...</content></entry></feed>
