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()
    

See Also

Tasks

How to: Read from the Clipboard in Visual Basic

How to: Determine What Type of File is Stored on the Clipboard in Visual Basic

How to: Save an Audio Stream to the Clipboard in Visual Basic

How to: Write to the Clipboard in Visual Basic

Reference

My.Computer.Clipboard.Clear Method