1 / 4

Drag and Drop

Drag and Drop. Graphical user interfaces, such as Windows and Mac OS’s, make use of a technique called “drag and drop.”

odell
Download Presentation

Drag and Drop

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Drag and Drop • Graphical user interfaces, such as Windows and Mac OS’s, make use of a technique called “drag and drop.” • This is where you press the mouse button down on an object, like a file, and move it to a new location by holding the button down (dragging) until you reach the intended destination. • When you get to the intended destination, such as the desktop or some other directory, you let the mouse button up, “dropping” the object in the new location.

  2. Drag and Drop in VB.NET • VB.NET allows you to incorporate drag and drop into your own programs. • It is most commonly used to drag objects from one ListBox to another, but • It can also be used to drag controls from one container control to another. • In both cases, the code is rather tricky; therefore • I will simply demonstrate how it works and give you the examples in case you need to use it at some point. • The code is in DragDrop.zip, available in today’s lecture materials. • Those of you coming to lab on Friday will get a chance to try it out as well.

  3. Drag and Drop: ListBoxes • With ListBoxes, drag and drop is usually used for visually sorting things:

  4. Drag and Drop: Controls • This example demonstrates dragging controls (PictureBoxes and Labels) between the two sides of a SplitPanel control.

More Related