Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21156

How to change this vb.net code to vb6 (about draw the line in picturebox)

$
0
0
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs)Handles Button1.Click

Dim g As Graphics = PictureBox1.CreateGraphics
Randomize()

Dim point1(20) As Point

For i As Integer= 0 To 10

point1(i).X = 100 + i * 20
point1(i).Y = Rnd() * 20 + 50

Next
g.DrawLines(Pens.Blue, point1)
End Sub



THANK YOU

Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>