Advertisement
RieqyNS13

Scripts Adobe Reader

Jul 24th, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub OpenDocumentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenDocumentToolStripMenuItem.Click
  4.         Try
  5.  
  6.             If OpenFileDialog1.ShowDialog = DialogResult.Cancel Then
  7.                 AxAcroPDF1.Visible = False
  8.                 Panel1.Visible = True
  9.                 Me.MaximizeBox = False
  10.             Else
  11.                 AxAcroPDF1.src = OpenFileDialog1.FileName
  12.                 AxAcroPDF1.Visible = True
  13.                 Panel1.Visible = False
  14.                 BackToHomeToolStripMenuItem.Enabled = True
  15.                 Me.MaximizeBox = True
  16.             End If
  17.         Catch
  18.         End Try
  19.     End Sub
  20.  
  21.     Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
  22.         MsgBox("====Creator by RieqyNS13==== rieqyerisya@yahoo.com", MsgBoxStyle.Information, "Informe")
  23.     End Sub
  24.  
  25.     Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
  26.         Application.Exit()
  27.     End Sub
  28.  
  29.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  30.         Try
  31.  
  32.             If OpenFileDialog1.ShowDialog = DialogResult.Cancel Then
  33.                 AxAcroPDF1.Visible = False
  34.                 Panel1.Visible = True
  35.                 Me.MaximizeBox = False
  36.             Else
  37.                 AxAcroPDF1.src = OpenFileDialog1.FileName
  38.                 AxAcroPDF1.Visible = True
  39.                 Panel1.Visible = False
  40.                 BackToHomeToolStripMenuItem.Enabled = True
  41.                 Me.MaximizeBox = True
  42.             End If
  43.         Catch
  44.         End Try
  45.     End Sub
  46.  
  47.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  48.         Application.Exit()
  49.     End Sub
  50.  
  51.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  52.         MsgBox("====Creator by RieqyNS13==== rieqyerisya@yahoo.com", MsgBoxStyle.Information, "Informe")
  53.     End Sub
  54.  
  55.     Private Sub BackToHomeToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackToHomeToolStripMenuItem.Click
  56.         Me.Size = New Size(709, 581)
  57.         Panel1.Visible = True
  58.         AxAcroPDF1.Visible = False
  59.         Me.MaximizeBox = False
  60.  
  61.         BackToHomeToolStripMenuItem.Enabled = False
  62.  
  63.     End Sub
  64. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement