Working with the Clipboard
The My.Computer.Clipboard
property provides members for working with the system clipboard. Table 20.1 summarizes the members.
The following code shows how you can clear the clipboard and then copy some text; in the end the code checks if some text is available and, if so, returns the text:
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.