hello,

I want to create an ftp browser where user can browse the files in the ftp server in explorer style.

can i get the list of directories and load it in a treeview then when the user selects the treenode, files in selected directory should be loaded in a listview.
i don't know how to differentiate between fies and folder when getting list of files and folder from ftp.

and is there any possibility that i show the files with their icons.

can any one here help me out, i got to finish this by Wednesday...

DirectoryInfo class has a method GetDirectories().
In his snippet DirectoryInfo is used with its GetFiles() method:
http://www.daniweb.com/code/snippet983.html

A TreeView has an ImageList. You can index this list to select the icon you want when you make a new TreeNode.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.