Ciao..inserisci in un form una picturebox con un'immagine e prova questo codice (tanto per darti un'idea..):
codice:
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
'proprietà scalemode del form = 3
Dim Disegna As Boolean
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Disegna = True
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim coord As POINTAPI
If Disegna = True Then
GetCursorPos coord
Picture1.PSet (coord.X, coord.Y)
End If
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Disegna = False
End Sub
Per disegnare invece righe orizzontali o verticali bisogna scrivere un codice un pò diverso, cmq è fattibile..
ciao