[RESOLVED] Copy Paste-VBForums
Results 1 to 3 of 3

Thread: [RESOLVED] Copy Paste

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2011
    Posts
    198

    Resolved [RESOLVED] Copy Paste

    Hi

    When I press on a button, I add the text of the button to the clipboard.

    I'd then like this text to appear on one of three labels, depending on which one I click on.

    Advice appreciated!

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    97,091

    Re: [RESOLVED] Copy Paste

    If you find a resolution to your problem on your own, please share it with the class, in case anyone else has a similar problem in the future.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2011
    Posts
    198

    Re: [RESOLVED] Copy Paste

    Sorry! Completely forgot!

    Button Click event:
    Clipboard.SetText(Button1.Text)

    Label Click event:
    If Clipboard.ContainsText Then
    LabelOne.Text = Clipboard.GetText

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.