摘要: protected override bool ProcessDialogKey(Keys keyData) { if (keyData == Keys.Enter && !(this.ActiveControl is Button)) { keyData = Keys.Tab; } return base.ProcessDialogKey(keyData); } 阅读全文
posted @ 2011-03-10 19:38 现役程序员 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 去掉单元格焦点虚框和设置单元格不能被选中 private void kDGV_ghd_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { e.PaintParts = e.PaintParts ^ DataGridViewPaintParts.Focus; if (toolStripButton审核.Enabled == false || toolStripButton审核.Visible == false) { for (int i = 0; i < kDGV_ghd.RowCount; i++) { kDG 阅读全文
posted @ 2011-03-10 19:35 现役程序员 阅读(2727) 评论(0) 推荐(0) 编辑