I've been scouring the web for days now trying to find a tutorial on making a windows explorer type application that shows how to add the Desktop, My computer and so forth. Seems this is so easy no one needs a tutorial but I do! Anyone have some links, or at least some samples?
Anything?
12/32/84 - I need some code to make me a sandwhich.
you could look in to IO.Directory and IO.File , here's an example of getting all directories in the C:\ area and adding to a treeview :
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim directory As IO.Directory
Dim strPaths() As String = directory.GetDirectories("C:\")
Dim x As Integer
For x = LBound(strPaths) To UBound(strPaths)
TreeView1.Nodes.Add(strPaths(x))
Next
End Sub
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
Thanks for the info. That works just as I wanted. Just have to learn a bit more about treeview and nodes. Maybe I can add the desktop and my documents the same way.. ?
I know they'll be listed in c:\ but I was hoping to get them listed at the top.
12/32/84 - I need some code to make me a sandwhich.