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

IO.DirectoryInfo not doing anything?

$
0
0
OK hi again guys. Another problem here:
Code:

Dim infoReader As System.IO.DirectoryInfo
Label1.Text = Form1.ListBox3.SelectedItem
infoReader = My.Computer.FileSystem.GetDirectoryInfo(Form1.TextBox1.Text + "\" + Form1.ListBox3.SelectedItem)
filescount.Items.AddRange(infoReader.GetFiles)
Label2.Text = filescount.Items.Count & " files inside the folder."
Label3.Text = Label3.Text + infoReader.LastAccessTime
Label4.Text = Label4.Text + infoReader.CreationTime

Nothing happens. Nothing. Not even an error comes up. The labels stay as their default text.

Viewing all articles
Browse latest Browse all 27466

Latest Images

Trending Articles



Latest Images

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