OpenFileDialog isn't for actually opening/executing the file
The main purpose of the OpenFileDialog is to select a file and get the filename and path of the file the user selected. You can then do what it is you wanted to do with the file.
If you want to actually execute/open the file that the user selects, then try the code below...
----------------------
If OpenFileDialog.ShowDialog() = DialogResult.OK Then
Process.Start(OpenFileDialog.FileName)
End If
----------------------
You can also put the Process.Start(OpenFileDialog.FileName) code in the OpenFileDialog_FileOK event.
----------------------
Private Sub OpenFileDialog_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog.FileOk
Process.Start(OpenFileDialog.FileName)
End Sub
----------------------
That event is fired if the user selects a filename. IF the user cancels or whatnot, then the _FileOK event will not fire.
Anyways, hopefully you understand how the OpenFileDialog works and what its main purpose is.
Jason