○C# コントロールの動的配置
//パネルクラスを継承したクラス
public class PanelX : System.Windows.Forms.Panel
{
}
//上のクラスをフォーム上に貼り付け
private void Form1_Load(object sender, System.EventArgs e)
{
PanelX mePanel = new PanelX();
mePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
mePanel.Location = new System.Drawing.Point(24, 32);
mePanel.Size = new System.Drawing.Size(144, 112);
this.Controls.Add(mePanel);
}