none
Copy RRS feed

  • Question

  • Hi 

    I want to add copy button to my form and i want it to only copy highlighted area.

    Language I am using VB.net

    Reply soon!!!!!!!!!!!!!!!!! 

    Sunday, February 9, 2014 3:48 PM

Answers

  • Add the button to your form, then handle the Click event. (Double click on button to add the handler). It can look like this:

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        TextBox1.Copy()
        TextBox1.Focus()
    End Sub

    Adjust the names (TextBox1, Button1) if required.

    Sunday, February 9, 2014 5:58 PM

All replies