By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,813 Members | 2,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,813 IT Pros & Developers. It's quick & easy.

Dynamically generating menu using reflection

P: n/a
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
Mar 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"poppy" <po***@discussions.microsoft.com> schreef in bericht
news:64**********************************@microsof t.com...
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

Mar 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.