SetData Method


SetData Method

Location

My.Computer.Clipboard.SetData

Syntax

 My.Computer.Clipboard.SetData(format, data) 


format (required; String)

The named custom format of the data to be written to the system clipboard


data (required; Object)

The data to be written to the system clipboard

Description

The SetData method writes data in a named custom format to the system clipboard.

Usage at a Glance

  • This method is only valid in non-server applications.

  • Security restrictions in place for the active user may limit access to the system clipboard.

Example

This sample writes custom text data to the clipboard, but the data could also be in a non-text format.

     My.Computer.Clipboard.SetData("Japanese-Romaji", _        "Kore wa pen desu.") 

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.ClipboardProxy.SetData Method

  • System.Windows.Forms.Clipboard.SetData Method

See Also

Clipboard Object, ContainsData Method, GetData Method, SetAudio Method, SetData Method, SetDataObject Method, SetFileDropList Method, SetImage Method, SetText Method




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