Advertisement
smashapps

How to make a PDF reader

May 14th, 2011
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub OpenToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles OpenToolStripMenuItem.Click
  4.         OpenFileDialog1.ShowDialog()
  5.     End Sub
  6.  
  7.     Private Sub ExitToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ExitToolStripMenuItem.Click
  8.         End
  9.     End Sub
  10.  
  11.     Private Sub OpenFileDialog1_FileOk(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
  12.         AxAcroPDF1.src = OpenFileDialog1.FileName
  13.     End Sub
  14. End Class
  15.  
  16. 'Note:
  17. 'You need a menustrip, open file dialog, and the Adobe Reader COM componement
  18. '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement