getting clipboard text

My.Computer This component exposes a lot of functionality via a number of properties, many of which are objects. The My.Computer.Clipboard component lets you access the Clipboard. To find out whether the Clipboard contains a specific type of data, use the ContainsText, ContainsImage, ContainsData, and ContainsAudio methods. To retrieve the contents of the Clipboard, use the GetText, GetImage, GetData, and GetAudioStream methods.


1. Add a button on form
2. Add a label on form
Code :

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ' Change lable text to the clipboard text
        Label1.Text = My.Computer.Clipboard.GetText
    End Sub
End Class