摘要: 1. 通过KeyPress 事件保证TextBox输入值都为数字。this.testBox.KeyPress+=delegate(object sender , KeyPressEventArgs e){ if(e.KeyChar!=8 && !Char.IsDigit(e.KeyChar)) e.... 阅读全文
posted @ 2014-08-08 15:32 Aeolia 阅读(108) 评论(0) 推荐(0)
摘要: 进入日进的第一周,主要是做winform相关的内容,这次权当复习下,下面做一下这一周的笔记。1. Combobox关联数据源DataTablea. 自定义DataTable内容var dataTable = new DataTable(){}; dataTable.Colu... 阅读全文
posted @ 2014-08-08 15:03 Aeolia 阅读(182) 评论(0) 推荐(0)