3 Replies Latest reply: Aug 19, 2009 12:38 AM by Netis RSS

    Embedded acrobat stealing focus

    natetrost Community Member

      Hello,

      We have written a program in c# that allows people to view pdf files. Our embedding uses the axhost, which in turn refers to the acrobat control. We have also used the acrobat sdk to embed. In both instances, once the pdf loads, it steals focus in the application window. Does anyone know how to prevent this behavior?

       

      Thanks, Nate

        • 1. Re: Embedded acrobat stealing focus
          lrosenth Adobe Employee

          Use standard Windows API calls to take back the focus.

          • 2. Re: Embedded acrobat stealing focus
            natetrost Community Member

            Hello,

            Thanks for your response. Well the problem with that is after calling load, it appears to be an async process, and I have no event or callback that notifies me when the pdf load has been completed, so I have no indication as to when to set focus back to the proper control. Also considering there is alot controls that could have the potential of being focused on our form, I am thinking I will have to use pinvoke - GetFocus and SetFocus. It would be great if there was a way to have acrobat NOT steal focus in the first place.

             

            Thanks,

            Nate

            • 3. Re: Embedded acrobat stealing focus
              Netis

              Hello,

               

              I have the same problem with an embedded Acrobat window stealing focus (since version 8), and have reported it to Adobe. Did you ever figure out how to solve the problem? We are now on verion 9 and the problem remains...

               

              Best regards

              Netis