First of all, this series of notes is I in the Cloud Classroom website, du Yang Studio of the C # Introductory design course made notes, only for their own record learning, RELATED links: http://study.163.com/course/courseLearn.htm? courseid=983035#/learn/video?lessonid=1160254&courseid=983035
One, Visual Studio 2012 installation
The download section is not introduced, we all understand.
During installation, if you develop C # (C Sharp) with only this software in the optional feature options that you want to install, you do not need to choose to install it. Because the installation of all the words not only occupy the hard disk, but also very versatile.
Second, the new project
Open the software, click New Project, select Windows under Visual C # in the template on the left side of the page, and note that the. NET framwork at the top of the page determines compatibility, 4 The following can be run XP and 4.5 can only be run in Win7, 4 can be run in XP or Win7.
Select the first Windows window application here, set the project name and path, click OK, then set up the project.
Three, the basic project setup
Click on the left side of the page toolbox, you can select the desired control, directly into our page in the middle of the window, some of the controls are directly on the Software page, some are not displayed, in the bottom left corner of the page. Control-related properties can be set in the lower right-hand corner of the property block.
Here we see the Solution Explorer on the right, under our project properties, there is AssemblyInfo.cs, this file is about the content of the software properties, that is, we developed the software, right-click Properties, see, is the content of this file.
And in the Form1.cs file below, the Form1 option is our real code. We need to design the logical relationships that are actually written in these code implementations. You can also enter the code for the appropriate control by double-clicking the control in the Software page. So you can say that the development of C # is implemented interactively in visualizations and in code.
For example, drag a button on the Software page, double-click the button, enter the button to trigger the function code, write the related logical event in the function, then at run time, click the button, the event in the function can be triggered.
Visual Studio-based C # host computer programming learning Note--01.visual Studio 2012 Installation and engineering setup