Jump to content
Xtreme .Net Talk

looking for a simple sample code in vb.net


Recommended Posts

Guest something007
Posted

need to do a explore kinda file browser.

which using a treeview and a listview, i don't want to use the driver and file control that was in vb6, any example that does this with a filesystemobject?

i tried mine just not working which can read all the folders in all the other drivers except the root driver where my winxp is installed.

  • *Gurus*
Posted
I did this once before, I used the methods of the System.IO.Directory class instead of the FileSystemObject. A useful hint is not to recurse all files and folders until the user expands each directory in the treeview, just recurse enough to figure out if the directories need a + before them.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Guest something007
Posted
I did this once before, I used the methods of the System.IO.Directory class instead of the FileSystemObject. A useful hint is not to recurse all files and folders until the user expands each directory in the treeview, just recurse enough to figure out if the directories need a + before them.

 

thanks for answering.

what is the difference between system.io.directory and filesystemobject?

 

i didn't recurse at all, what i did just scan the drivers first, then give each driver a dummy node, then when user expand it, then i read all the folders under that driver, not include subfolders, i put another dummy head under the node where there is subfolder.

 

the problem is the code works for all other drivers, included CD-driver, just not my D: where winxp is installed. is there any known problem of fso with root driver where winxp is?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...