Dynamically generating menu using reflection

G

Guest

I have an application which has a MDI parent form and a simple menu bar.
Using reflection I can get access to other assemblies and add an item to my
parent menu which when clicked opens up the main form of the assembly.
Within this new window I can run my application as normal.
The problem is that I do not want the child application to have its own
menu. I want the parent form to add items for every form which exists in the
child.

I am completly baffled by this and was hoping for some pointers.

Thanks inadvance
 
E

Eric

Here's how I would do it....

When the child window is opened, set a variable of the parent to a value.
Then when the menu is clicked (the one you always see, not the ones that are
in the pulldown) check the variable and based on the value 'it' will know
how the pulldown menu should be for this child window.

I don't know if this is the 'perfect' way of programming, but it works for
me.

rg,
Eric
 

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