Computer.Clipboard Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an object that provides methods for manipulating the Clipboard.

Namespace:   Microsoft.VisualBasic.Devices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public ClipboardProxy Clipboard { get; }

Property Value

Type: Microsoft.VisualBasic.MyServices.ClipboardProxy

The My.Computer.Clipboard object for the computer.

This property provides easy access to the ClipboardProxy object.

This property is available only for non-server applications.

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

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.

.NET Framework
Available since 2.0
Return to top
Show: