CODIGO VB NET

FABRICIOWEB 21/08/2017 17:28:59
#475910
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
JABA 21/08/2017 17:39:46
#475911
Resposta escolhida
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
FABRICIOWEB 21/08/2017 18:04:05
#475916
tanhks brother perfect
Tópico encerrado , respostas não são mais permitidas