Solved

To trigger a file drop down menu to drop when form load event happens.

Posted on 2014-02-03
8
418 Views
Last Modified: 2014-02-04
I have been making entire File drop down menus for every Windows form. When you have about a dozen forms; every time you add a new form you have to add another link to each of a dozen file drop down menus. This also makes the program unnecessarily large.  Now I have a Windows form just to hold a central File drop down menu called “Nav”. The code I am looking for is code that will automatically trigger the file drop down menu to drop down when the form load event happens in this central form I call "Nav".

     I simply click on a label named File in any form and the label code opens up "Nav" and at the same time I want the file menu to automatically drop down with the form load event (need code for this) so you do not have to click again to make it drop down.  Please let me know if you have any questions about this. Thank you
0
Comment
Question by:jampost
  • 5
  • 2
8 Comments
 
LVL 16

Expert Comment

by:SriVaddadi
Comment Utility
Please add some code snippets on how you are doing
0
 

Author Comment

by:jampost
Comment Utility
SriVaddadi,

I attached a PDF file that I think explains what is needed in a better way.
sa--EE.pdf
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
Are you using combobox controls? If yes, you can set its DroppedDown property to true to open it programmatically.
0
 

Author Comment

by:jampost
Comment Utility
Code Cruiser,

The control I am using is a menu strip with standard items inserted. I removed everything except the File pull down menu. Can a combobox control be used the same way for navigation as a file pull down menu? I suppose I might be going about this the wrong way.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
Is it the menu control you are talking about? Can you show a screenshot of this when this menu is open? Why do you have to add entries in this menu for each form? Are you using an MDI parent form?
0
 

Author Comment

by:jampost
Comment Utility
CodeCruiser,

I attached the screen shot. The first one shows the File pull down "pulled down" The second one shows The menu strip; both of them show the properties on the right. The third just shows the Main form code view showing the code for the link from the file label to Nav.  

What I was doing is making each form self-contained so to speak. They would each have their own navigation pull down menu located on the form. It is a lot of work keeping up with that. so I decided to make one central navigation form and just do a link from each for to it. Maybe a module or something would be a better way. I don't know. Thank you for your help.
Screenshot--VS-2012.docx
0
 

Author Comment

by:jampost
Comment Utility
CodeCruiser
     These are just regular Windows forms. What I was saying is that I had a navigational pull down menu attached to each form. This is a lot of code and it makes the program larger than it needs to be. My idea is to have just one centralized set of navigational links, and each form would link to the central Nav form for navigation.
0
 

Author Closing Comment

by:jampost
Comment Utility
Thank you. I am looking into the MDI idea.
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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

763 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

10 Experts available now in Live!

Get 1:1 Help Now