Hello everyone,
I'm trying to make grids in a picturebox in order to be able to draw some charts on it. I use the following code but it takes a lot of time to draw the grids in each frame. What can one do to make drawing of grids faster?
Thanks for your help!Code:Pic.Scale (0, Pic.ScaleHeight)-(Pic.ScaleWidth, 0)
Dim i As Integer, j As Integer
For i = 0 To Int((Pic.ScaleWidth) * 0.1)
For j = 0 To Int((Pic.ScaleTop) * 0.1)
Pic.Line ((i) * 10, 0)-((i) * 10, Pic.ScaleTop), vbBlue
Pic.Line (0, (j) * 10)-(Pic.ScaleWidth, (j) * 10), vbBlue
Next j
Next i

