Dynamically generating menu using reflection

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top