CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493

    Setting Focus On Another Application

    My app is opening a form in a different application (Outlook 2000). I need my application
    to set the value of a particular field (Text Box). I tried using SendKeys but when the form
    is opened the focus can sometimes start in different areas so SendKeys will not work.
    Is there anyway to set the focus or the value of a text box in another app using API's?

    Kris
    Software Engineer
    Phoenix,AZ
    Kris
    Software Engineer
    Phoenix, AZ USA

  2. #2
    Join Date
    Nov 2000
    Location
    Tokyo and Memphis
    Posts
    238

    Re: Setting Focus On Another Application

    I'm sure there's a better way but I think I did this once by using a comon file. I wanted the new app to set focus on a command box so I saved the name to a txtfile. When the new app opened it searched the txtfile for the name and if it found one then it set focus there. I think that's how it worked anyway.

    Phil



  3. #3
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493

    Re: Setting Focus On Another Application

    well I have no control over the other app. it is the meeting request form in Outlook 2000.

    Kris
    Software Engineer
    Phoenix,AZ
    Kris
    Software Engineer
    Phoenix, AZ USA

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