Results 1 to 3 of 3

Thread: Copying a textbox's contents

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    89

    Wink Copying a textbox's contents

    Hello,

    VB Windows App:

    Is there a way to get the contents of a textbox from any existing client application (like a VB app, a textbox from a Web Page, Word, Excel etc.) I was thinking of using the double click event which selects all the contents in a foreign textbox and then using a mousedown event to "copy" onto my own VB textbox.

    There's got to be a way as long as the user isn't doing "copy and paste" manually with the mouse. Is there an event that can capture the contents of a textbox?
    Any examples will be great!

    Thanks.

    Chris

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    You need to get the handle of that textbox and the address of the windows the control is on . I've not done this before so I can't give you the details .

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    89
    Maybe a screen scrape? Can't be a web page though, has to be a client app.

    Chris

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