View Single Post
Old 05-11-2004, 01:20 PM
Iceplug's Avatar
Iceplug Iceplug is offline

Retired Moderator
* Guru *
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Wink Three more examples

Here are three examples of drag dropping.
If you are going to peruse them... go through them in order.
It's more fun that way.

This illustrates how to move the drag dropped picturebox to the destination with the most realistic drag drop... you take the point where the user clicked on the image, and when they drop the image, you move the image with respect to this point, so that the image appears under the mouse at the same position it was when they clicked on it.

This shows how to drag multiple objects onto multiple drag drop targets (and I use the DragLeave event). I also create several pictureboxes at run time so it looks neat and it looks like a control array.

This one shows you how you can use the effects to make a Copy or a Move effect depending on if the user is pressing down the Ctrl button. If the control button is pressed, you get the copy effect and see the copy mouse cursor... if not, then you get the regular move.

Have fun... more examples coming soon.
Attached Files
File Type: zip (9.3 KB, 819 views)
File Type: zip (9.9 KB, 611 views)
File Type: zip (7.5 KB, 597 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