请教老师,未升级前以下代码正常在DrawCell运行,升级后,只能在表格式样为FOXTABLE经典蓝/银/黑正常运行,其他表格式样均不能运行
'------------单元格·模拟按钮
If e.Col.name= "项目登记" Then
e.StartDraw()
Dim fnt As New Font("微软雅黑",9)
Dim w As Integer = e.Width-13 ' - 4
Dim h As Integer = e.Height-14
Dim x As Integer = e.x '+ (e.Width - w)/2
Dim y As Integer = e.y
Dim msg As String
Dim br As object
If e.MouseHover = False '如果鼠标不在此单元格
e.Graphics.DrawImage(getimage(projectPath & "Images\按钮启动.png"), e.x+6,e.y+6,w,h)' + 0, 70, 23) '显示第一个图标
br = New SolidBrush(color.Navy)
msg = ""
Else
e.Graphics.DrawImage(getimage(projectPath & "Images\按钮修改.png"), e.x+6,e.y+6,w,h)' + 0, 70, 23) '显示第二个图标
br = New SolidBrush(color.Navy)
msg = ""
End If
e.EndDraw()
End If