Solved

ToolStripMenuItem not opening up?

Posted on 2014-10-17
11
94 Views
Last Modified: 2014-10-18
I recently made some changes to an Windows App. The problem I'm having is that a ToolStripMenuItem (TSMI) won't even open when I click on it. I have done nothing to the code that would affect this. The The weird thing is this just started. It was working yesterday and now all of the sudden it's not. Obviously I've done something but have NO idea what. The TSMI is enabled and visible. I don't know what could prevent it from opening up unless it was disabled?

Thanks!
0
Comment
Question by:BlakeMcKenna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40386887
Try doing a Clear Solution by going to the main menu of the IDE and clicking on the Build -> Clear Solution. The project may have gotten out of sync with the code. Then re-compile the solution and see if it helped.
0
 

Author Comment

by:BlakeMcKenna
ID: 40386923
Fernando,

I tried that and it didn't help. This is so weird. I have no idea what I did to make it do that. I thought that whenever you click on a menu item, it should always open up if it has child menuitems?
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40386932
Have you tried placing a break point in the click event of the menu strip to see if it even gets there?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:BlakeMcKenna
ID: 40386987
For this particular menu item, there is no click event.
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40387026
A MenuStrip contain ToolStripMenuItems which both have Click events, although you may not have a need to define one yet.

In design mode are you able to open the MenuStrip and see the ToolStripMenuItems? Also go into the Properties window for the MenuStrip and make sure it is not disabled,  Enabled = False, for the top menu that is not opening.

I will be leaving in a little while and if you have not been able to get pass this issue and if you can zip up the project and upload it to a web location that I can download it, I will take a look at it sometime over the weekend.
0
 

Author Comment

by:BlakeMcKenna
ID: 40387225
I am able to open the MenuStrip and the Enabled Property is set to "True"...

Unfortunately, I cannot send you the project...company policy!
0
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 40388769
In that case what I would do is to create a small test app that has a MenuStrip with ToolStripMenuItem's, get it working and then compare it to the one that is not working to try and find out what is the issue.
0
 

Author Comment

by:BlakeMcKenna
ID: 40388951
Fernando,

I figured it out. It had to do with the fact that I designed this menu to be driven by the database based on user's permissions. I realized that the I had to submenu items that were not in the database which is why when I clicked on the Menu Item, nothing happened. It's because the sub Items weren't there. That was an easy fix. Just took way to long to figure it out!!!

Thanks for your help!
0
 

Author Closing Comment

by:BlakeMcKenna
ID: 40388952
I figured it out. It had to do with the fact that I designed this menu to be driven by the database based on user's permissions. I realized that the I had to submenu items that were not in the database which is why when I clicked on the Menu Item, nothing happened. It's because the sub Items weren't there. That was an easy fix. Just took way to long to figure it out!!!
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40388972
Well glad you got through your issue. Have a great weekend.
0
 

Author Comment

by:BlakeMcKenna
ID: 40389049
Thanks...you do the same!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question