populating a TreeView control

T

Tony

Hello;
VB.Net, .net 3.5, vs2008
I created a WPF app and I am trying to populate a treeview control
with the local computers drives, folders and files.

this is what I have so far: the treeview control is not populating.
Can anyone push me in the right direction?

Imports System.IO
Imports System.Windows.Controls.ItemCollection

Class Window1
Sub main()

For Each di As DriveInfo In DriveInfo.GetDrives()
TreeView1.Items.Add(di)
Next
End Sub
End Class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top