The AxAcroPDF control takes focus when a PDF file is loaded into it.
To prevent this, the AxAcroPDF control is placed into a panel which is disabled prior to loading a pdf. This inturn disables the AxAcroPDF control preventing it from taking focus.
A mouse hook is used to check if the mouse has entered the area of the panel, in which case the panel is enabled to allow the user to interact with the AxAcroPDF control.
VB.net Source: AxAcroPDF-Focus-Example.zip (5274 downloads )
Geez, 140 downloads of the sample code and not one comment.
Your ideas seems to be cool but I wasn’t able to replicate it.
The example app not working for you?
Great! Thanks.
Thank you “very” “very” much from Japan !!
We got good results.
thank you !