VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Drag and Drop anywhere on form

Michael Frey  (4 Submissions)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Use this code to drag and drop any control anywhere on a form or another control.

Assumes
Lets supose you want to drop a picture or a button on the form or on a big label. Add a Commandbutton (Command1) a big Label (Label1) and a picture (Picture1). IMPORTANT The picture and commandbutton property DRAGMODE have to be set to Automatic

API Declarations
Public X1, Y1

Rate Drag and Drop anywhere on form (5(5 Vote))
Drag and Drop anywhere on form.bas

Drag and Drop anywhere on form Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters