Chapter 2 - Writing a C# Program

来源:互联网 发布:知网查重数据库 编辑:程序博客网 时间:2024/05/19 23:02
  • Recap

1. What Are the Basic Tool Windows of Visual Studio?

1.1 The Solution Explorer And Class View

These 2 windows show the files that make up the projects of the entire solution. Double clicking the files within changes what code is displayed in the main editor window.

 

1.2 The Properties

This window displays information about selected items, including the ones in the solution explorer, components on the user interface, and etc.


1.3 The Error List

This window displays any problems within the current file in the main editor window. Double clicking the entries within will navigate to the exact respective line of code.



2. How Does the Windows Forms Editor Work?

2.1 Design View

This view is contained in the main editor and is a visual translation of the layout code.

2.2 Form.designer.cs

As stated above, the layout code is hidden inside this file.

2.2 Form.cs

By double clicking any components or choose "View Code" from the design view, this file will be opened for editing background UI logics.



  • Quiz

No quiz is provided for this chapter yet. But you should be able to create a simple Console Application and a simple Windows Forms Application, of "Hello World" style.