treeview in main menu

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
 
C

Cor

Hi Bernie,
You can look on MSDN for treeview class,
There are lots of examples there
Cor
 
F

Fergus Cooney

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top