Hi members,
Im having a problem opening my saved files with OpenFileDialog. I point it to the right directory, and filetype no problem, but when i choose the file, and click open, i either get an exception, or it wont do anything. I know this is a basic task, but im quite new to this, and would appreciate any help. Ive included my code below. Not sure what im doing wrong. I have imported the following namespaces as well : System.IO and System.IO.Filestream
Heres the code:
Thanks for your help. Most appreciated.
Im having a problem opening my saved files with OpenFileDialog. I point it to the right directory, and filetype no problem, but when i choose the file, and click open, i either get an exception, or it wont do anything. I know this is a basic task, but im quite new to this, and would appreciate any help. Ive included my code below. Not sure what im doing wrong. I have imported the following namespaces as well : System.IO and System.IO.Filestream
Heres the code:
VB.NET:
Private Sub NewOrSavedEpcrOpenSavedEpcrButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewOrSavedEpcrOpenSavedEpcrButton.Click
Dim v_openFilePath As String = "c:\EPCR\"
OpenEpcrOpenFileDialog.InitialDirectory = v_openFilePath
OpenEpcrOpenFileDialog.Filter = "EPCR Files(*.epcr)| *.epcr"
If OpenEpcrOpenFileDialog.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
OpenEpcrOpenFileDialog.OpenFile()
End If
End Sub
Thanks for your help. Most appreciated.