Im converting a vb6 app to VB.net, but im having problem with drawing my line in VB.net because CurrentX, CurrentY and ScaleLeft and ScaleWidth are no longer used.
heres my vb6 code
CurrentX = ScaleLeft
CurrentY = .RegVal(CDbl(ScaleLeft))
For i = ScaleLeft To ScaleWidth Step R
Line -(i, .RegVal(CDbl(i))), vbBlue \ 2
This is what I have in VB.net so far...and its not working at all, my line is way off
For i = Me.Left To Me.Width Step R
g.DrawLine(Pens.MidnightBlue, 0, CInt(Reg.RegVal(CDbl(Me.Left))), i, CInt(Reg.RegVal(CDbl(i))))
is there an equivalent in VB.net to the VB6 coding methods?