Clipboard Object


Clipboard Object

Location

My.Computer.Clipboard

Description

Use the Clipboard object to add data to, and retrieve data from, the system clipboard.

Public Members

The following members of the My.Computer.Clipboard object have their own entries elsewhere in this chapter.

  • Clear Method

  • ContainsAudio Method

  • ContainsData Method

  • ContainsFileDropList Method

  • ContainsImage Method

  • ContainsText Method

  • GetAudioStream Method

  • GetData Method

  • GetDataObject Method

  • GetFileDropList Method

  • GetImage Method

  • GetText Method

  • SetAudio Method

  • SetData Method

  • SetDataObject Method

  • SetFileDropList Method

  • SetImage Method

  • SetText Method

Usage at a Glance

  • This object and its members are only valid in non-server applications.

  • The lifetime of clipboard data is beyond the control of your application. Data that you place on the clipboard may persist even after your application is closed. Also, other applications may replace data you add with different data, even if your application is still active.

  • The clipboard only holds one set of data at a time, normally in a single format. The most common formats are those defined through the System.Windows.Forms.DataFormats enumeration. To store multiple formats on the clipboard at the same time, use the My.Computer.Clipboard.SetDataObject method.

  • Only threads using the single-threaded apartment (STA) mode can access the clipboard remotely. An exception is raised when accessing the clipboard remotely using other modes.

  • A class must be serializable (with the ISerializable interface) before its data can be added to the clipboard.

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.ClipboardProxy

  • Microsoft.VisualBasic.VariantType.DataObject

  • System.Windows.Forms.Clipboard

  • System.Windows.Forms.DataFormats

See Also

Computer Object




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

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