Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Computer.Clipboard Property
Definition
- Namespace:
- Microsoft.VisualBasic.Devices
- Assembly:
- Microsoft.VisualBasic.dll
- Assembly:
- Microsoft.VisualBasic.Forms.dll
- Source:
- Computer.vb
- Source:
- Computer.vb
- Source:
- Computer.vb
- Source:
- Computer.vb
- Source:
- Computer.vb
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
Was this page helpful?
