Computer.Clipboard Property
Definition
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.