Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB.NET's FolderBrowserDialog & Exception
Message
From
04/03/2005 11:40:16
Takashi Koyama
National Indemnity Company
Omaha, Nebraska, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
VB.NET's FolderBrowserDialog & Exception
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Jet/Access Engine
Miscellaneous
Thread ID:
00992774
Message ID:
00992774
Views:
117
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
Map
View

Click here to load this message in the networking platform