using System;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
MenuStrip menuStrip1 = new MenuStrip();
StatusStrip statusStrip1 = new StatusStrip();
TextBox textBox1 = new TextBox();
private void Form1_Load(object sender, EventArgs e)
{
menuStrip1.Dock = DockStyle.Top;
statusStrip1.Dock = DockStyle.Bottom;
textBox1.Dock = DockStyle.Fill;
textBox1.Multiline = true;
textBox1.ScrollBars = ScrollBars.Both;
//zオーダーは親コントロール(この場合はForm1)に追加した段階できまる。
this.Controls.Add(menuStrip1);
this.Controls.Add(statusStrip1);
this.Controls.Add(textBox1);
//zオーダーを調整可能
textBox1.BringToFront();
statusStrip1.SendToBack();
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uV2luZG93cy5Gb3JtczsKCm5hbWVzcGFjZSBXaW5kb3dzRm9ybXNBcHBsaWNhdGlvbjEKewogICAgcHVibGljIHBhcnRpYWwgY2xhc3MgRm9ybTEgOiBGb3JtCiAgICB7CiAgICAgICAgcHVibGljIEZvcm0xKCkKICAgICAgICB7CiAgICAgICAgICAgIEluaXRpYWxpemVDb21wb25lbnQoKTsKICAgICAgICB9CgogICAgICAgIE1lbnVTdHJpcCBtZW51U3RyaXAxID0gbmV3IE1lbnVTdHJpcCgpOwogICAgICAgIFN0YXR1c1N0cmlwIHN0YXR1c1N0cmlwMSA9IG5ldyBTdGF0dXNTdHJpcCgpOwogICAgICAgIFRleHRCb3ggdGV4dEJveDEgPSBuZXcgVGV4dEJveCgpOwoKICAgICAgICBwcml2YXRlIHZvaWQgRm9ybTFfTG9hZChvYmplY3Qgc2VuZGVyLCBFdmVudEFyZ3MgZSkKICAgICAgICB7CiAgICAgICAgICAgIG1lbnVTdHJpcDEuRG9jayA9IERvY2tTdHlsZS5Ub3A7CiAgICAgICAgICAgIHN0YXR1c1N0cmlwMS5Eb2NrID0gRG9ja1N0eWxlLkJvdHRvbTsKICAgICAgICAgICAgdGV4dEJveDEuRG9jayA9IERvY2tTdHlsZS5GaWxsOwogICAgICAgICAgICB0ZXh0Qm94MS5NdWx0aWxpbmUgPSB0cnVlOwogICAgICAgICAgICB0ZXh0Qm94MS5TY3JvbGxCYXJzID0gU2Nyb2xsQmFycy5Cb3RoOwoKICAgICAgICAgICAgLy9644Kq44O844OA44O844Gv6Kaq44Kz44Oz44OI44Ot44O844OrKOOBk+OBruWgtOWQiOOBr0Zvcm0xKeOBq+i/veWKoOOBl+OBn+autemajuOBp+OBjeOBvuOCi+OAggogICAgICAgICAgICB0aGlzLkNvbnRyb2xzLkFkZChtZW51U3RyaXAxKTsKICAgICAgICAgICAgdGhpcy5Db250cm9scy5BZGQoc3RhdHVzU3RyaXAxKTsKICAgICAgICAgICAgdGhpcy5Db250cm9scy5BZGQodGV4dEJveDEpOwoKICAgICAgICAgICAgLy9644Kq44O844OA44O844KS6Kq/5pW05Y+v6IO9CiAgICAgICAgICAgIHRleHRCb3gxLkJyaW5nVG9Gcm9udCgpOwogICAgICAgICAgICBzdGF0dXNTdHJpcDEuU2VuZFRvQmFjaygpOwogICAgICAgIH0KICAgIH0KfQo=