16,554
社区成员
发帖
与我相关
我的任务
分享
Private Sub DataGridView1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles DataGridView1.Paint
Dim rect As Rectangle = New Rectangle(Me.DataGridView1.RowHeadersWidth + 1, 2, Me.DataGridView1.Columns(0).Width - 2, Me.DataGridView1.ColumnHeadersHeight / 2 - 2)
e.Graphics.FillRectangle(New SolidBrush(Me.BackColor), rect)
e.Graphics.DrawString("haha", New Font(New FontFamily("宋体"), 9), Brushes.Black, rect)
End Sub