CPS613

Module 05-DragDrop

Toronto Metropolitan University University

Learning Objectives

In this module you will learn how to
    implement basic drag and drop detect objects underneath another when dragging implement dynamic mouse cursors (i.e. cursors that change depending on what is underneath them) put an image into a control load a file statically (at design time) display information on the status bar

Module Description:

Summary

In this module you will be develop a basic program that implements different drag and drop elements through the use of two image controls.

User Interface and Interaction

The application will behave like ModuleDragDrop.zip

It consists of Two PictureBox controls, each with a solid border and containing a different image. Each PictureBox control can be dragged and dropped. In particular: When the user clicks on a picture box, the mouse cursor should change to a custom cursor. Releasing the mouse button should return the cursor to default. Each picture box should be visibly draggable and droppable with smooth motion. When a picture box is being dragged, the status bar is updated to show its current coordinates relative to the form. When one picture box is dragged over another picture box, the status bar should also indicate which picture box is being dragged over which.

Implementation Details

The images in the PictureBoxes should be loaded from Resources, and should be automatically embedded in the application at compile time.

Handouts

In the Handouts directory you will find:

References

References for this module are in the Drag and Drop Reference and in the StatusBar Reference Section
Explanations of all VB features needed for all the modules can be found at the General Assignment References page


This page is maintained by Sophie Quigley (cps613@cs.torontomu.ca)
Last modified Thursday, 20-Oct-2022 01:30:09 EDT