Allowing a form control to be movable (DRAG AND DROP)

This is a tip on how to make a control movable on a form. This example demonstrates a movable picture box.

Option Explicit
Public globalX As Integer
Public globalY As Integer

Private Sub Form_DragDrop(Source As Control, X As _
Single, Y As Single)
Picture1.Move X - globalX, Y - globalY
End Sub

Private Sub Picture1_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
Picture1.Drag vbBeginDrag
globalX = X
globalY = Y
End Sub


403 Forbidden

Forbidden

You don't have permission to access /linkserve.pl on this server.

HTTP/1.1 200 OK Date: Sun, 08 Nov 2009 00:00:24 GMT Server: Apache/1.3.33 (Unix) mod_perl/1.29 Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 200 OK

OK

You don't have permission to access /users/fdb/allowing.htm on this server.