treeview in main menu

  • Thread starter Thread starter Bernie Yaeger
  • Start date Start date
B

Bernie Yaeger

I have an mdi app that has a main menu on the parent form. I would like to
use a treeview in place of one of the menu options, so that instead of a
menu option - say, 'reports' - it would have 'reports' but the second level
would not be menu items for each report but rather a treeview control which,
when clicked, would produce the appropriate report.

Essentially, then, what I want to do is use a treeview where a sub menu list
ordinarily appears. Any ideas how this can be done?

Tx for any help.

Bernie Yaeger
 
Hi Bernie,

I would imagine that it can't be done. Once your TreeView has focus, the
menu will disappear, whereas if it were a real part of the menu, you'd be able
to navigate back up and around, etc like you can with normal submenus. This'll
just leave you with a TreeView hanging around somewhere near the menu bar.

If it's <that> important, you could do a screen capture of the menu into a
PictureBox and position that under the TreeView, then if the User navigates
off the TreeView such that they would have been going back to the menu, you
activate the real menu and dispose of the picture box. But wot a palaver.

Regards,
Fergus
 
Back
Top