Results 1 to 8 of 8

Thread: copy, paste and cut

  1. #1

    Thread Starter
    Lively Member Skateboarder's Avatar
    Join Date
    Nov 2000
    Location
    Delfzijl, the Netherlands
    Posts
    66
    how do i copy, paste and cut selected text from/in a
    textbox? I mean when it's running... so I can cut, paste
    and copy stuff to/from the clipboard like a texteditor.
    To VB or not to VB, that's the question...

  2. #2
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    Look at this thread http://forums.vb-world.net/showthrea...threadid=39797 for a few ideas.

  3. #3

    Thread Starter
    Lively Member Skateboarder's Avatar
    Join Date
    Nov 2000
    Location
    Delfzijl, the Netherlands
    Posts
    66

    Thumbs up Thanx!!!

    I had the exact same idea! Thanx bro'!
    To VB or not to VB, that's the question...

  4. #4

    Thread Starter
    Lively Member Skateboarder's Avatar
    Join Date
    Nov 2000
    Location
    Delfzijl, the Netherlands
    Posts
    66

    HELP!!!!

    I get a runtime error:

    object required....

    it does not recognize the clipboard!! Maybe my vb version is
    too old?
    To VB or not to VB, that's the question...

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmm.. think it's should work, post the code pls.

    ... and what VB version are you using?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  6. #6
    Hyperactive Member
    Join Date
    Sep 2000
    Posts
    257
    Have you tried Text1.seltext=clipboard.GetText, and Text1.seltext=clipboard.SetText ??

  7. #7

    Thread Starter
    Lively Member Skateboarder's Avatar
    Join Date
    Nov 2000
    Location
    Delfzijl, the Netherlands
    Posts
    66

    ...

    I use the exact code as shown in the link above.
    And I'm using Visual Basic 4.0 SE
    Maybe a lil' bit too old?
    To VB or not to VB, that's the question...

  8. #8
    Guest
    To save data to the clipboard:

    Clipboard.SetText MyData
    (Clipboard.SetText Text1.SelText)

    To retrieve it:

    RetrievedData = Clipboard.GetText()
    (Text1.text = Clipboard.GetText() )

    What line is highlighted?

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