Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

MainWindowHandle is zero!

$
0
0

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!


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>