Problem solve Get help with specific problems with your technologies, process and projects.

Book excerpt: Using Visual Basic 2005 to enhance the clipboard

This chapter demonstrates how Visual Basic 2005 programmers can add drag-and-drop events to the clipboard object, which provides end users with more control over application data.

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.

Read the excerpt in this PDF file.

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.

This was last published in October 2007

Dig Deeper on .NET Framework 2.0 and Visual Studio 2005 development

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

SearchCloudApplications

Close