Something like this?
VB Code:
Option Explicit
Dim blnDrawSquare As Boolean
Dim StartX As Long
Dim StartY As Long
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
blnDrawSquare = True
StartX = X
StartY = Y
End If
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If blnDrawSquare Then
Picture1.Cls
Picture1.Line (StartX, StartY)-(X, StartY)
Picture1.Line (StartX, StartY)-(StartX, Y)
Picture1.Line (X, StartY)-(X, Y)
Picture1.Line (StartX, Y)-(X, Y)
End If
End Sub
Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
blnDrawSquare = False
Picture1.Cls
End Sub