treeview probs

usetheforce2
02-22-2001, 09:25 PM
What i'm using the treeview for is to allow the user to find files on there drives, and i was just wondering is there a way to display an "opened" folder when the user clicks on it (there are no more sub folders). I've been trying to figure it out but i stopped dead in my tracks. any ideas would be great!

I've attached the app if it will help

Thanks
Regan

Jared
03-03-2001, 08:49 AM
Regan,

In the "TreeView1_NodeClick" event just add this line...

Node.Image = "OpenFolder"

...of course you will probably have to go through all of the other nodes and "reset" their icons to a closed folder also...


Jared Hoylman
Please visit VB Overdrive at <A HREF="http://vboverdrive.extreme-vb.net/main.php3" target="_new">http://vboverdrive.extreme-vb.net/main.php3</A>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum