Drag and drop is a common windows application where you can drag and drop an object such as a file into a folder or into a recycle bin. This capability can be easily programmed in Visual Basic. In the following example, I am creating a simulation of dragging the objects into a recycle bin, then drop a fire and burn them away. In this program, I inserted 6 images onto the form, one of them is a recycle bin, another is a burning recycle bin , one more is the fire, and three more images. In addition, set the property dragmode of all the images( including the fire) that are to be dragged to 1(Automatic) so that dragging is enabled, and set the visible property of burning recycle bin to false at start-up. Besides, label the tag of fire as fire in its properties windows.
To learn the deatails of creating the DragDrop procedure, we suggest you obtain a copy of Visual Basic 6 Made Easy.
AUTHOR: DR. LIEW VOON KIONG
VISUAL BASIC 6 MADE EASY is an eBook written by our webmaster, Dr.Liew. It was used as a textbook by the University of Wesleyan. You can use this book as a textbook for your VB course or project.
By reading this book, you can:
You can also use the book in many ways, such as:
Order this book and you can Download the FREE Source Codes for the sample VB6 programs illustrated in this book. Click the Order button below to get your e-book and the free stuff.
*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment.
Mode of Delivery: Download
This site and the products and services offered on this site are not associated, affiliated, endorsed, or sponsored by Microsoft, nor have they been reviewed tested or certified by Microsoft.
If you require assistant and technical support, please contact:Admin