CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    listboxes: file showing wihout filelistboxes

    how do I make it so that i can have a listbox show the contents of files in a path, and another listbox showing directories in that drive. I do not want to use a filelistbox or a dirlistbox, since you cannot add or remove items on those.


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: listboxes: file showing wihout filelistboxes

    If you're using VB6 or have VB5 with the Scripting Runtime installed, take a look at http://codeguru.developer.com/vb/articles/1958.shtml - it should give you a few pointers.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  3. #3
    Join Date
    Nov 1999
    Location
    Italy
    Posts
    80

    Re: listboxes: file showing wihout filelistboxes

    You have to use the add method to add items to the listview, and the dir command to obtain files and directories.
    Dir command have some options to filter files, you can find them in the online help of VB.
    Remember add code at the dblclick event of listview with directories to populate the 2nd listview (files).

    Something over there is coding....
    ... and you don't know!

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

Featured