Solved

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

Posted on 2014-02-03
8
428 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
ID: 39831474
Please add some code snippets on how you are doing
0
 

Author Comment

by:jampost
ID: 39832362
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
ID: 39832624
Are you using combobox controls? If yes, you can set its DroppedDown property to true to open it programmatically.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:jampost
ID: 39832742
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
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39833058
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
ID: 39833128
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
ID: 39833269
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
ID: 39834317
Thank you. I am looking into the MDI idea.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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