I have a PictureBox on a form called Source.
The following should produce a box, right?
Private Sub Source_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button <> 1 Then Exit Sub
Source.DrawMode = 13
iX = X
iY = Y
End Sub
Private Sub Source_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button <> 1 Then Exit Sub
Source.Line (iX, iY)-(X, Y), , B
End Sub
It does, but the box is filled with a strange pattern of lines. What can be wrong?
Any help would be appreciated.
Dom
The following should produce a box, right?
Private Sub Source_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button <> 1 Then Exit Sub
Source.DrawMode = 13
iX = X
iY = Y
End Sub
Private Sub Source_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button <> 1 Then Exit Sub
Source.Line (iX, iY)-(X, Y), , B
End Sub
It does, but the box is filled with a strange pattern of lines. What can be wrong?
Any help would be appreciated.
Dom