title: Loading a pdf file in Visual Basic Windows form?
body: <p>I have seen tutorials on how to open pdf files into the windows form, but they show how to open it by creating a button that will find it from the directory. 
  I want the pdf file to be displayed already, as soon as the user loads that Window form. 
  I have installed the Adobe pdf reader in the component toolbox, and 
  put the following code with the load function of the form:
      Public Class Adding_Worksheet</p>
  
  <pre><code>    Private Sub Adding_Worksheet_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
          Call AxAcroPDF1.LoadFile(0, "D:\Mixed_Addition_1.pdf")
  
      End Sub
  End Class
  </code></pre>
  
  <p>I have adapted this from when I added an swf file, which had no problems in loading. I know the zero is incorrect above, but i am not sure what to write there. the additional code i had for the swf file was <code>AxShockwaveFlash1.Play()</code>. would i need to do something like <code>AxAcroPDF1.Load()</code>?</p>