VB : tree view and drive list box controls 
Author Message
 VB : tree view and drive list box controls

i have a drive list control ( drvList ) and tree view
control ( tvwFiles ).

How can i make tvwFiles display the contents ( structure )
of the selected drive ( drvList ) ?

Thanks in advance,

Regards,
{*filter*}tech



Fri, 19 Sep 2003 13:25:08 GMT  
 VB : tree view and drive list box controls


Fri, 19 Jun 1992 00:00:00 GMT  
 VB : tree view and drive list box controls
First, if you're going to do this "correctly", get rid of the DriveListBox
control.  The TreeView should also list the drives, as Explorer does.  It
sounds like you're combining the Win3.x way of doing things with the
Win9x/NT/2000 way of doing things. That's a sure disaster because you're
only going to confuse users, who expect certain standards.

As for how to go about populating the TreeView with the directory structure,
there are a number of ways.  If you're familiar with using the API, I'd
recommend the FindFirstFile and FindNextFile API functions (and of course
FindClose), but you can do it using VB's Dir function and still achieve
reasonable performance.  I'd suggest going to Randy Birch's web site at
http://www.*-*-*.com/ ;I'm reasonably sure he has example code for
this.

Mike


Quote:
> i have a drive list control ( drvList ) and tree view
> control ( tvwFiles ).

> How can i make tvwFiles display the contents ( structure )
> of the selected drive ( drvList ) ?

> Thanks in advance,

> Regards,
> {*filter*}tech



Fri, 19 Sep 2003 14:04:49 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VB : tree view and drive list box controls

2. List Boxes Tree View Control

3. Tree control / List view in ONE control?

4. Network drives in a drive list box control

5. tree view and list view..

6. Tree View / List View

7. List View to Tree View

8. Tree View & List View Icons

9. Grid control with Tree and List View.

10. Need help to create Explorer-Like view with Tree/List control

11. Tree View Control as file view

12. VB4 Tree View-displaying drives, directories like explorer

 

 
Powered by phpBB® Forum Software