Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim strFileName As String
- fd.Title = "Open file dialog"
- fd.InitialDirectory = "D:\Folder"
- fd.Filter = "PDF files (*.pdf)|*.pdf|PDF files (*.pdf)|*.pdf"
- fd.FilterIndex = 2
- fd.RestoreDirectory = True
- If fd.ShowDialog() = DialogResult.OK Then
- strFileName = fd.FileName
- WebBrowser1.Navigate(strFileName)
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement