CODIGO VB NET
alguem poderia me ajudar como fazer esse codigo em vb net
For i = 0 To List1.ListCount - 1
x = ListBox1.i(i)
y = List2.List(i)
Picture1.Line (xant, yant)-(x, y), 2
yant = y
xant = x
DoEvents()
Next i
For i = 0 To List1.ListCount - 1
x = ListBox1.i(i)
y = List2.List(i)
Picture1.Line (xant, yant)-(x, y), 2
yant = y
xant = x
DoEvents()
Next i
Dim bit As Bitmap = New Bitmap(pic.Width, pic.Height)
Dim g As Graphics = Graphics.FromImage(bit)
Dim myPen As Pen = New Pen(Color.Blue, 3)
g.DrawLine(myPen, 0, 0, pic.Width, pic.Height)
pic.Image = bit
social.msdn.microsoft.com/Forums/vstudio/en-US/39e307ed-383e-40c3-b980-5741fdf53e74/how-to-draw-line-on-picturebox-in-net-when-i-pass-picturebox-as-parameter-to-some-function?forum=vbgeneral
tanhks brother perfect
Tópico encerrado , respostas não são mais permitidas