Solved

ToolStripMenuItem not opening up?

Posted on 2014-10-17
11
83 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
  • 6
  • 5
11 Comments
 
LVL 62

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 62

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
 

Author Comment

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

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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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 62

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 62

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now