I am developing a Windows Form application using Visual Basic 2010. What I am trying to achieve is to open an application and have the application's Window displayed in a Form or in another container such as a PictureBox. The code I have at the moment can display a Microsoft Word or PowerPoint in a PictureBox control, but when I replace the Word or PowerPoint file with a PDF file, the window does not display in the PictureBox. I have stepped through the code and found out that the MainWindowHandle is zero for PDF application. I do not understand why the code works as expected for Microsoft Office, but does not work the same way for PDF. I am pleading to anybody who understands why this is happening to help me.
Thank you!