Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27386

Variable 'Di' is used before it has been assigned a value. A null reference ...

$
0
0
What is the right way to do this???
Code:

Public Sub TreeView1_DoubleClick(sender As Object, e As EventArgs) Handles TreeView1.DoubleClick
        Dim rootDi As New DirectoryInfo(currDrive)
        Dim Di As DirectoryInfo
        frmAddorIncludeFolder.Label1.Text = ""
        frmAddorIncludeFolder.Label1.Text = "Folder Double Clicked " & Di.FullName
    End Sub

Thanks

Viewing all articles
Browse latest Browse all 27386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>