Clipboard.SetDataObject Method

   
Clipboard.SetDataObject Method

Class

System.Windows.Forms.Clipboard

Syntax

 SetDataObject(   data   ) 
data (required; any)

Data to place on the Clipboard

Description

Places data on the Clipboard

Example

The following example places text on the clipboard:

 Dim s As String = "donna" clipboard.SetDataObject(s) 

VB.NET/VB 6 Differences

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.

See Also

Clipboard Class, Clipboard.GetDataObject Method, IDataObject Interface

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net