1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| Private Sub Command1_Click()
Dim SelectedFile As String
SelectedFile = File1.Path & "\" & File1.FileName
Text1.Text = SelectedFile
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Form_Load()
Drive1.Drive = "D:"
Dir1.Path = "D:\scanner"
Dim SelectedFile As String
SelectedFile = File1.Path & "\" & File1.FileName
AcroPDF1.Visible = False
AcroPDF1.LoadFile SelectedFile
AcroPDF1.Visible = True
AcroPDF1.setShowToolbar (False)
End Sub
Private Sub Text1_Change()
Dim SelectedFile As String
SelectedFile = File1.Path & "\" & File1.FileName
Text1.Text = SelectedFile
End Sub |