摘要:
前段时间练手做了一个小小TextBox控件,用于校验用户的输入。简单把创建过程写一写,对于新手或许有点用。 首先新建一个windows控件库项目,名称定为MyTextBox。打开解决方案资源管理器,右键点击UserControl1.cs文件->查看代码。修改类的名称为CusTextBox),并修改其继承的父类为System.Windows.Forms.TextBox。这样就拥有了一般TextBox... 阅读全文
三文鱼海域Fools learn nothing from wise men, but wise men learn much from fools. |