General information
Title:
VB.NET's FolderBrowserDialog & Exception
Environment versions
Database:
Jet/Access Engine
Hello, I have the following codes and received
System.NullReferenceException which I don't understand why.
Please help me on this.
Thank you. (I use Visual Studio 2003.)
Dim fbdFolderSelection As FolderBrowserDialog
fbdFolderSelection = New FolderBrowserDialog
Try
fbdFolderSelection.ShowDialog()
strMainDir = "MAINDIR=" & fbdFolderSelection.SelectedPath.ToString()
'strMainDir = "MAINDIR=c:\"
Catch ex As System.NullReferenceException
strMainDir = "MAINDIR=" & fbdFolderSelection.SelectedPath.ToString()
End Try
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only