View Single Post
Old 05-03-2004, 05:56 PM
Iceplug's Avatar
Iceplug Iceplug is offline

Retired Moderator
* Guru *
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Smile DragDrop with Movement

Here's an example that supports dragging and dropping that actually moves the shapes to where you drag them...

the first method assigning e.X and e.Y in the DragDrop to the picturebox location... well, it "works", but it's wrong.

A more proper method would be to turn the e.X and e.Y into a Point and then use the form's .PointToClient method to get the right location.

Check out the attachment.
Attached Files
File Type: zip (10.5 KB, 643 views)

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote