Edit

Share via


Computer.Clipboard Property

Definition

Gets an object that provides methods for manipulating the Clipboard.

public:
 property Microsoft::VisualBasic::MyServices::ClipboardProxy ^ Clipboard { Microsoft::VisualBasic::MyServices::ClipboardProxy ^ get(); };
public Microsoft.VisualBasic.MyServices.ClipboardProxy Clipboard { get; }
member this.Clipboard : Microsoft.VisualBasic.MyServices.ClipboardProxy
Public ReadOnly Property Clipboard As ClipboardProxy

Property Value

The My.Computer.Clipboard object for the computer.

Examples

This example reads text from the Clipboard into the string textOnClipboard.

Dim textOnClipboard As String = My.Computer.Clipboard.GetText()

This example fails if there is no text on the Clipboard.

Remarks

This property provides easy access to the ClipboardProxy object.

This property is available only for non-server applications.

Availability by Project Type

Project type Available
Windows Forms Application Yes
Class Library Yes
Console Application Yes
Windows Forms Control Library Yes
Web Control Library No
Windows Service Yes
Web Site No

Applies to

See also