I am embedding Adobe Acrobat in our c# program by inheriting AxHost and passing in the Acrobat guid("ca8a9780-280d-11cf-a24d-444553540000")
to the base constructor. To load a pdf I call InvokeMember("LoadFile")
. The problem I am running into is after calling "LoadFile" and the PDF loads, Acrobat takes the focus in our form. Being Acrobat apparently starts loading on another thread, calling focus on the control that previously had focus, doesn't fix the problem. So does anyone have any idea of how I can prevent this from occurring?
Asked
Active
Viewed 2,019 times
2

Giulio Caccin
- 2,962
- 6
- 36
- 57

NastyNateDoggy
- 292
- 1
- 2
- 14
-
1I posted a possible solution here http://stackoverflow.com/questions/3074857/axacropdf-swallowing-keys-how-to-get-it-to-stop/21159725#21159725 Hope it helps. – Tim Jan 16 '14 at 10:58