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 (1604 downloads)