Page 1 of 1

Dynamically build cascading menu from directory structure

Posted: Fri Nov 22, 2019 9:58 am
by PGomersall
Hi at Sapien,
Have you any examples of dynamically building a cascading toolstripmenu from a simple directory tree (2\3 levels deep) and adding files within the tree as items with click events? Obviously given a set starting root folder.
I am trying to add this kind of structure to a system tray app.
Pete

Re: Dynamically build cascading menu from directory structure

Posted: Fri Nov 22, 2019 10:41 am
by jvierra
For this kind of structure we would use a TreeView control. Doing this complex of a structure from a tray app would be disruptive. Just have the tray app open a dialog with a TreeView control.