This documentation is archived and is not being maintained.

How to: Clear the Clipboard in Visual Basic

The My.Computer.Clipboard.Clear Method clears the Clipboard. Because the Clipboard is shared by other processes, clearing it may have an impact on those processes.

To clear the Clipboard

  • Use the Clear method, as follows.

    My.Computer.Clipboard.Clear()
    
Show: