Hello guys.
I have an issue when I try to copy data to clipboard.
I have 4 textboxes and I want all data from these 4 textboxes to be copied to clipboard.
I wrote these few line of code, but I manage to copy the data from the first textbox only.
Obviously, I am missing something...
Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim J as control For Each Me.J In Me.Controls If TypeOf J Is TextBox Then If J.Text <> "" Then Clipboard.SetText(J.Text) End If End If Next J End Sub




Reply With Quote
