サンプル  プログラム3

1: usingSystem;

2: usingSystem.Windows.Forms;

3:

4: classHello:Form

5: {

6:   publicstaticvoidMain()

7:   {

8:     Hellohw=newHello();

9:     hw.Text="アプリケーション名";

10:

11:     Buttonbtn=newButton();

12:     btn.Parent=hw;

13:     btn.Text="Push";

14:

15:     Application.Run(hw);

16:   }

17: }