Using the Clipboard
The System.Windows.Forms namespace provides Clipboard functionality—that is, the traditional cut, copy, and paste functions. The Clipboard class abstracts this functionality via two methods: GetDataObject and SetDataObject. Here are their declarations:
Public Shared Function GetDataObject() As IdataObject 'SetDataObject is overloaded: 'version 1 Overloads Public Shared Sub SetDataObject(ByVal data As Object) 'version 2 Overloads Public Shared Sub SetDataObject(ByVal data As Object, _ ByVal copy As Boolean)
Pushing Data onto the Clipboard
The SetDataObject method allows you to place data onto the Clipboard. There are two different implementations of this method. The second overloaded version allows you to specify, through ...
Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.