Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB.NET's FolderBrowserDialog & Exception
Message
De
04/03/2005 11:40:16
Takashi Koyama
National Indemnity Company
Omaha, Nebraska, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
VB.NET's FolderBrowserDialog & Exception
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Jet/Access Engine
Divers
Thread ID:
00992774
Message ID:
00992774
Vues:
114
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform