Solved

ToolStripMenuItem not opening up?

Posted on 2014-10-17
11
89 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

765 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