Results 1 to 7 of 7

Thread: Copy

  1. #1

    Thread Starter
    Addicted Member Dementia Freaks's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    132

    Copy

    a button that will copy from a text box.. how can i do it?
    Gray FOX: "Only a fool, trusts his life to a Weapon!"

    Bart Simpson: "Bart no like! Baaad medicene!"

    www.sling.to/dementia-freaks <<<---Goto my site!

    http://pub80.ezboard.com/bdementiafreaksforum <<<---Goto my forum!

    Thats it!

  2. #2
    VB Code:
    1. Clipboard.SetText Text1.Text

  3. #3
    Addicted Member
    Join Date
    Sep 2001
    Posts
    148

    Re: Copy

    VB Code:
    1. Private Sub Command1_Click()
    2. Clipboard.Clear
    3. Clipboard.SetText Text1.Text
    4. End Sub
    will copy the contents of text1 to the clipboard.

  4. #4
    Addicted Member
    Join Date
    Sep 2001
    Posts
    148
    arg too slow!

  5. #5
    Do you need the Clear?

  6. #6
    Addicted Member
    Join Date
    Sep 2001
    Posts
    148
    Originally posted by filburt1
    Do you need the Clear?
    I have found that if the clipboard already has text in it VB wont do anything...

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    You are right, you need the clear otherwise .settext does nothing.

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