Solved

ToolStripMenuItem not opening up?

Posted on 2014-10-17
11
88 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 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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