I am using a picturebox to set up a grid from -50 to 50.
I use the following code to create the grid, but my vertical line 0 an the X axis is getting drawn over by the rest of my lines. can anyone please help
For I = -50 To 50 Step 2
If I = 0 Then Picture1.ForeColor = &H80000012
If I <> 0 Then Picture1.ForeColor = &H9D9D9D
Picture1.Line (-50, I)-(50, I)
Picture1.Line (I, -50)-(I, 50)
Next
I use the following code to create the grid, but my vertical line 0 an the X axis is getting drawn over by the rest of my lines. can anyone please help
For I = -50 To 50 Step 2
If I = 0 Then Picture1.ForeColor = &H80000012
If I <> 0 Then Picture1.ForeColor = &H9D9D9D
Picture1.Line (-50, I)-(50, I)
Picture1.Line (I, -50)-(I, 50)
Next