public SBConsole() { ApplicationSettings.SkinControl(this); Dock = DockStyle.Fill; Output = new TextBox(); Output.Multiline = true; Output.ScrollBars = ScrollBars.Both; Output.ReadOnly = true; Output.Dock = DockStyle.Fill; ApplicationSettings.SkinControl(Output); Input = new TextBox(); Input.Dock = DockStyle.Bottom; Input.KeyPress += (sender, args) => { if (args.KeyChar == (char)13) { WriteLine(Input.Text); ConsoleFunctions.ProcessCommands(SplitArguments(Input.Text)); Input.Text = ""; } }; ApplicationSettings.SkinControl(Input); Controls.Add(Output); Controls.Add(Input); }