趁着现在项目的间隙,我想认真地总结和学习下C# Form编程的steps.
今天是第一篇:Get started with C# Form Programming
1 [assembly : System.Reflection.AssemblyVersion("2.0")]
2 namespace MyNamespace
3 {
4 public class MyForm : System.Windows.Forms.Form
5 {
6 public MyForm()
7 {
8 this.Text = "Hello Form";
9 }
10
11 public static void Main()
12 {
13 System.Windows.Forms.Application.Run(new MyForm());
14 }
15 }
16 }
2 namespace MyNamespace
3 {
4 public class MyForm : System.Windows.Forms.Form
5 {
6 public MyForm()
7 {
8 this.Text = "Hello Form";
9 }
10
11 public static void Main()
12 {
13 System.Windows.Forms.Application.Run(new MyForm());
14 }
15 }
16 }