|
-
Feb 5th, 2007, 03:55 PM
#1
Thread Starter
Fanatic Member
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
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
-
Feb 5th, 2007, 04:01 PM
#2
Fanatic Member
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.
-
Feb 5th, 2007, 04:27 PM
#3
Thread Starter
Fanatic Member
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.
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
-
Feb 5th, 2007, 04:37 PM
#4
Fanatic Member
Re: IDE menu/contextmenu won't show
Did you assign the Context menu to the form thru the Form's property view?
-
Feb 5th, 2007, 04:43 PM
#5
Thread Starter
Fanatic Member
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.
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|