For most end users, the clipboard is literally out of sight and out of mind, lost amid an often tedious copy-and-paste sequence. However, the deft use of Visual Basic 2005 lets programmers beef up the clipboard substantially, in the process giving users better control over a particular application's data.
Drag and Drop and the Clipboard, Chapter 13 of Wrox Press' Visual Basic 2005 with .NET 3.0 Programmer's Reference, guides developers through each of the three steps of dragging and dropping -- clicking the mouse, dragging the file and releasing the mouse -- and the controls involved in each step -- the drag source control that starts the drag and the drop target controls where a file could be placed. Code samples are provided for a variety of drag-and-drop scenarios, such as moving and coping between ListBoxes, getting an application to accept dropped files and dragging multiple data formats.
More from this book: Printing in Visual Basic 2005
Excerpted from the Wrox book, Visual Basic 2005 with .NET 3.0 Programmer's Reference (ISBN: 978-0-470-13705-5) by Rod Stephens.
Copyright © 2007. Published by John Wiley and Sons Inc., and available at your favorite book seller. Reprinted with permission.