サンプル  プログラム2

1: usingSystem;

2: usingSystem.Windows.Forms;

3:

4: classHello:Form

5: {

6:   publicstaticvoidMain()

7:   {

8:     Hellohw=newHello();

9:     hw.Text="Hello, world!";

10:     Application.Run(hw);

11:   }

12: }