Winform
Mr.PeiGeekDream
这个作者很懒,什么都没留下…
展开
-
Winform DataGridView 添加复选框checkbox--添加一列复选框
实现winform DataGridView增加一列CheckBox(复选框)列。效果图DataGridView => dgvForm窗体加载事件private void Form_Load(object sender, EventArgs e) { //为dgv增加复选框列 DataGridViewCheckBoxColumn checkbox = ne...原创 2019-03-01 09:21:14 · 17228 阅读 · 6 评论 -
Winform TextBox控件只允许输入数字
KeyPress 事件private void TextBox_KeyPress(object sender, KeyPressEventArgs e) { // 48 - 57 代表 0-9 // 8 代表退格 // 46 小数点 // 45 代表负号 //非0-9 非Backspace(退格) 非小数点禁止输入 if (((int)e.KeyChar &...原创 2019-04-24 15:20:48 · 2135 阅读 · 0 评论