Guess I have to give up!
I tried hard to figure a way with the new toolmenustrip but it's not
possible.
When I went from VB6 to VB.net I found I could generate a context menu in a
usercontrol and pass it to a form which merged it with the forms menu.
For all those menu items the form had to know nothing. If one was clicked
the usercontrol responded directly.
Unbelievable all the code I dumped that use to keep the forms menu updated
and called usercontrol methods for menuitem clicks.
Now comes VS2005 with such nice menu I want to use them but I can not figure
a way to create a usercontrol contextmenu and pass it to the form so that
both the context and mainmenu. I tried to write my own ContextMenu clone but
ran into problems there.
Seems that no matter what I tried it either did not work of if it did it
simply moved the items from one menu to another.
So why this post?
Before I go the VS2003 way I want to be sure a better VS2005 way is not
coming soon.
Is there an VS2005 update in the works?
Does it include anything that would help me?
A clone method for the menus would be great.
I noticed that MS generated merge methods that make the usual MDI menu
updates work.
Even if the clone could only handle ToolStripMenuItems that would go a long
way.
Or if one of the possible drop down items was a cloneableMenuItem and the
other types were ignored in a clone.
Thanks for any input as to what's coming from MS.
|