IDE menu/contextmenu won't show
Hi,
This is not a coding problem. I am working on several modules of one large project, so I know this problem is isolated to this one folder because it works just fine everywhere else.
When I add a context menu to my solution I can't edit it. It won't show up in the desiger. I can only see it near the bottom of the screen with my data adapters and datasets. When I right-click Edit Menu, I get this error:
Object reference is not set to an instance of an object.
Also, I don't know when exactly, the MainMenu I had on the form quit showing as well. I can get it to come up if I set the form's menu property to none, and then back to the MainMenu1, but everytime I debug, when I come back I have to do that little trick again to get it to show.
Anyone else ever come across this or know how to fix it? This is so annoying.
Thanks
Re: IDE menu/contextmenu won't show
I ran into this problem recently. For some reason, the main menu lost its hookup in the Windows Designer code. You can either go in by hand and figure out why it isn't being added back onto the form (whether its not being added to the form controls or its not being newed up) or you can delete the menu and start from scratch. Or if you are lucky, you can copy the designer code from a backup copy. The context menu probably has the same problem.
Re: IDE menu/contextmenu won't show
I forgot to add. The context menu is new. So, deleting it and adding it again won't help. I actually ran into this problem when I was trying to add the context menu.
Re: IDE menu/contextmenu won't show
Did you assign the Context menu to the form thru the Form's property view?
Re: IDE menu/contextmenu won't show
Yeah, I did that, too. I thought maybe that was the problem. But no amount of unassigning and assigning would make it come up like the MainMenu.