August 2001
Intermediate to advanced
656 pages
18h 5m
English
Clipboard.SetDataObject Method
System.Windows.Forms.Clipboard
SetDataObject(data)data
Use: Required
Data Type: Any
Data to place on the Clipboard
Places data on the Clipboard
The following example places text on the clipboard:
Dim s As String = "donna" clipboard.SetDataObject(s)
While the .NET Base Class Library uses the SetDataObject method to place all data on the Clipboard, the Clipboard object in VB 6 includes two methods, SetData and SetText, depending on the format of the data to be placed on the Clipboard.
Read now
Unlock full access