The code won't open a file since it never gets any file name. Try it this way:
Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
WebBrowser1.Navigate(OpenFileDialog1.FileName)
End If
End Sub
now it may or may not open and show the file in the control. If you try to open exe or similar file, you'll get IE's "Run/Save/Cancel" -dialog.
What custom settings? Please, be more specific.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008