3-2-3 ボタンを 配置 する。
2.csを
1. サンプルプログラム 3.csを
サンプル プログラム "3.cs"
1: using System;
2: using System.Windows.Forms;
3:
4: class Hello: Form
5: {
6: public static void Main()
7: {
8: Hello hw = new Hello();
9: hw.Text = "アプリケーション
10:
11: Button btn = new Button();
12: btn.Parent = hw;
13: btn.Text = "Push";
14:
15: Application.Run(hw);
16: }
17: }
2. 「
3. この プログラムを コンパイル し、
4.
・
- Tabキーで フォーカスを
・ ボタンは、 フォームの
・
3.exe