親フォルダ
01.using System;
02.using System.Collections.Generic;
03.using System.ComponentModel;
04.using System.Data;
05.using System.Drawing;
06.using System.Linq;
07.using System.Text;
08.using System.Threading.Tasks;
09.using System.Windows.Forms;
10. 
11.namespace BuildField
12.{
13.    public partial class Form1 : Form
14.    {
15.        // 単独
16.        //private TextBox textBox1;
17.        // 配列
18.        private TextBox[] textBoxArray;
19. 
20.        public Form1()
21.        {
22.            InitializeComponent();
23.            controlInit();
24.        }
25. 
26.        private void controlInit()
27.        {
28.            textBoxArray = new TextBox[1];
29. 
30.            // インスタンス作成
31.            textBoxArray[0] = new TextBox();
32.            // フォント設定
33.            textBoxArray[0].Font = new Font("MS UI Gothic", 12F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(128)));
34.            // 位置設定
35.            textBoxArray[0].Location = new Point(208, 42);
36.            // 名称設定
37.            textBoxArray[0].Name = "textBox1";
38.            // 幅と高さの設定
39.            textBoxArray[0].Size = new Size(208, 23);
40.            // TAB の順序
41.            textBoxArray[0].TabIndex = 0;
42. 
43.            Controls.Add(textBoxArray[0]);
44. 
45.        }
46.    }
47.}