473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

File tree view?

As I haven't had any lucking finding a FREE control to provide an
explorer-style tree view, I have to create my own. I need therefore to
generate a tree, starting at Desktop, containing My Documents, My Computer,
My Network Places, etc. How do I get this information? Building a tree
structure from a given drive is easy, but I need to include extensions,
don't I?

btw, if anyone knows of a component that will do this (NOT a dialog -
something I can embed on a form) then I'm all ears.

Thanks

Robin
Nov 20 '05 #1
2 1400
* "Robin Tucker" <id*************************@reallyidont.com> scripsit:
As I haven't had any lucking finding a FREE control to provide an
explorer-style tree view, I have to create my own. I need therefore to
generate a tree, starting at Desktop, containing My Documents, My Computer,
My Network Places, etc. How do I get this information? Building a tree
structure from a given drive is easy, but I need to include extensions,
don't I?


You will find some samples in C# for folder selection controls here,
maybe you can adapt one to show files too:

<http://www.codeproject.com/cs/miscctrl/#TreeView+Controls>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Perfect. Thanks very much. I was just about to go and talk my boss into
getting the company credit card out too!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ul**************@TK2MSFTNGP12.phx.gbl...
* "Robin Tucker" <id*************************@reallyidont.com> scripsit:
As I haven't had any lucking finding a FREE control to provide an
explorer-style tree view, I have to create my own. I need therefore to
generate a tree, starting at Desktop, containing My Documents, My Computer, My Network Places, etc. How do I get this information? Building a tree
structure from a given drive is easy, but I need to include extensions,
don't I?


You will find some samples in C# for folder selection controls here,
maybe you can adapt one to show files too:

<http://www.codeproject.com/cs/miscctrl/#TreeView+Controls>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kjon | last post by:
Hi, I'm doing a tree view which will show the file structure in an FTP server. How can I get the standard windows icons for folders and files and display them in the tree view control? Do I need...
3
by: Stefan Schwarzer | last post by:
Hello, from time to time I want to inspect the source code of projects on remote computers.(*) I've googled for one or two hours but didn't find anything helpful. :-/ I'm looking for something...
3
by: deaddog4201 | last post by:
How can i save a .txt file where the name of the file would be the result of the selection made from a Dom tree view's parent node tag in visual basic? So for example i have an editable tree view...
1
by: happy.john1234 | last post by:
Hi, i have got large xml file which i have to show in tree view windows form.I tried with loading all those data at once to tree view but it took a long time to render that tree view.Now i am...
12
by: minimalniemand | last post by:
I try to recursivley fill a treeview from a xml-file. It works well, when the contents of the xml and the treeview match 1:1. code here: http://mad-scientists.co.uk/micha/shownode.txt a sample...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.