Can anyone show me a pure .net equivelent of the VB6 Fix procedure as below
Function vbfix(ByVal ct As Char, ByVal e As DataGridcstrCel lEventArgs, ByVal
g As System.Drawing. Graphics) As Double
vbfix = Fix(Math.Ceilin g(g.MeasureStri ng(ct, e.TextFont, 20,
StringFormat.Ge nericTypographi c).Width))
End Function
Thanks
Function vbfix(ByVal ct As Char, ByVal e As DataGridcstrCel lEventArgs, ByVal
g As System.Drawing. Graphics) As Double
vbfix = Fix(Math.Ceilin g(g.MeasureStri ng(ct, e.TextFont, 20,
StringFormat.Ge nericTypographi c).Width))
End Function
Thanks
Comment