Link to home
Start Free TrialLog in
Avatar of TheRoyalFalcon
TheRoyalFalcon

asked on

dynamic contect menu from directory structure

Should be simple, but I am drawing a blank. I would like to build a winform context menu off of traget folder from my system. So say I have folder [C:\something\] and within it there is the following:
C:\something\subfolder\
C:\something\subfolder\something1.txt
C:\something\subfolder\something3.txt
C:\something\subfolder\subfolder2\xxx.txt
C:\something\123.txt

I like to build the context menu to mimic the above showing just the file names or folder names. whenever it hits a sub folder i need a new node on the menu with more sub items.

Any ideas?

VB 2K5 or C# - either would be fine.

thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TheRoyalFalcon
TheRoyalFalcon

ASKER

This worked like a charm. Thank you SO much. It is just what I needed. Thanks again!