Results 1 to 3 of 3

Thread: [2005] Copy to Clipboard

  1. #1

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Resolved [2005] Copy to Clipboard

    Hello to you all.

    I was wondering if it's possible to copy the text from another application to clipboard and paste it into my application.

    The paste procedure is working fine but i don't find any sample about how can i copy from an external application...

    Anyone can help me to solve this kind of problem ?

    Thanks in advice for any help!
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Copy to Clipboard

    If you were going to access an external application directly you wouldn't use the Clipboard. You'd use the Windows API. Specifically you'd call FindWindow to get the desired top-level window, FindWindowEx to get the desired child control, then SendMessage to get the text from the control.
    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 Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Re: [2005] Copy to Clipboard

    Quote Originally Posted by jmcilhinney
    If you were going to access an external application directly you wouldn't use the Clipboard. You'd use the Windows API. Specifically you'd call FindWindow to get the desired top-level window, FindWindowEx to get the desired child control, then SendMessage to get the text from the control.
    Thanks jmcilhinney... I am learning VB.NET! I opened for my first time VB.NET 4 months ago... it's to hard for me to understand all this things... but i still try to search one small sample about this...

    Thanks for your big help!
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

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