Initial knowledge of Windows programs

Source: Internet
Author: User

First, we create the first Windows program, which is divided into 4 steps:

1. Open the Visual Studio Developer tool

2. Select "File" → "new" → "Project" command

3. Project type Select "Visualc#"

4. Template Select "Windows Forms Application"

Select a good location and confirm the project after naming it.

Understanding Windows Programs

Form1.cs: Form files, programmers write code to the form is usually stored in this file

Form1.Designer.cs: Form design file, where the code is automatically generated without modification

Form1.resx: Resource file used to configure the string used by the current form. Pictures and other resources

Program.cs: Main program file, main () method that contains the program entry

MessageBox: Prompt Information

The Real Exit program

In the FormClosing event of the form, write Application.exit ();

The above is the most basic information we have just contacted Windows, will gradually update the later content, please pay attention to!!

Initial knowledge of Windows programs

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.