C # create a menu Program

Source: Internet
Author: User

Simple for beginners
Question: create a simple menu Program
The program runs as follows:

Steps:
1. Create a New windowsForm program, as shown in the previous article;
Or, right-click an existing project name and choose Project Name> add> Windows Form. The name is Form2.
1. Drag MenuStrip from ToolBox to the form;
2. Add: file (& F) in space. Note: & will be automatically recognized as the character for confirming the shortcut key. For example, & F, Alt + F will open the File menu;
3. Under the File menu, add (& O), close (& C), save (& S), and so on;
4. Follow the same steps to add other menus;
Check the code in Form2.cs, and no code is added;
5. Change the code in program. cs to form2 and run the program (Ctrl + F5) to see the following results;
The source project code is in my resources. (C # menu program of the form ))
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.