I created a MainMenu and when I run my application and open new forms the MainMenu items are being multiplied. Here's an screenshot example of the behavior (green numbers represent order the windows were opened): http://img87.imageshack.us/my.php?image=menubehaviorhf9.jpg
All of the MenuItems were added through the designer except the ones labeled "NewMenuItem."
Note that when I opened Window1, there were two sets of the MainMenu. When I opened Window3, one of the MainMenu sets from Window1 disappeared, and when I opened Window4, it removed a MainMenu from Window2, and when I opened Window5 it removed a MainMenu from Window4.
If I check the MainMenu.MenuItems.Count, it returns 1.
Has anyone had this problem and know why its happening and how do I fix it?
|
|