111,120
社区成员
发帖
与我相关
我的任务
分享 // 重绘
Pen pp = new Pen(Color.Red);
e.Graphics.DrawRectangle(pp, e.CellBounds.X, e.CellBounds.Y, e.CellBounds.X + e.CellBounds.Width - 1, e.CellBounds.Y + e.CellBounds.Height - 1);
private void tableLayoutPanel1_CellPaint(object sender, TableLayoutCellPaintEventArgs e) { // 单元格重绘 Pen pp = new Pen(Color.Red); e.Graphics.DrawRectangle(pp, e.CellBounds.X, e.CellBounds.Y, e.CellBounds.X + e.CellBounds.Width - 1, e.CellBounds.Y + e.CellBounds.Height - 1); }