VB Project Source Code

ClipBoad tutorial vb.net




Free download this tutorial link below

Public Class Form1



    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load



        My.Computer.Clipboard.Clear()

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        My.Computer.Clipboard.SetText(TextBox1.Text)

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        If My.Computer.Clipboard.ContainsText Then

            TextBox2.Text = My.Computer.Clipboard.GetText

        End If

    End Sub

End Class