Results 1 to 5 of 5

Thread: "Windows Explorer example or tutorial.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Colorado
    Posts
    83

    "Windows Explorer example or tutorial.

    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.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    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:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim directory As IO.Directory
    3.         Dim strPaths() As String = directory.GetDirectories("C:\")
    4.         Dim x As Integer
    5.  
    6.         For x = LBound(strPaths) To UBound(strPaths)
    7.             TreeView1.Nodes.Add(strPaths(x))
    8.         Next
    9.  
    10.     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]

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    There is one in CodeProject.com but it's in C# .

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Colorado
    Posts
    83
    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.

  5. #5
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Here one example. Its from the 101 VB.NET samples on MS's website.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width