CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: copy button

  1. #1
    Join Date
    Jun 2003
    Posts
    65

    copy button

    how do I make a cmd button that does the same as ctrl + C or rightclick > Copy

  2. #2
    Join Date
    May 2002
    Location
    Colombo,Sri Lanka
    Posts
    1,110
    Clipboard.SetText (Text1.Text)

    will copy the Text1 data to the clip board

  3. #3
    Join Date
    Feb 2001
    Location
    PA
    Posts
    163
    ' Empty the clipboard
    Clipboard.Clear
    ' Put selected text on the clipboard
    Clipboard.SetText Screen.ActiveControl.SelText

  4. #4
    Join Date
    Jun 2003
    Posts
    65
    can i just make it paste into a textfile?

  5. #5
    Join Date
    May 2002
    Location
    Colombo,Sri Lanka
    Posts
    1,110
    Clipboard.SetText Text1.Text
    Text2.Text = Clipboard.GetText

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured