// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace E { partial class MainForm { private Label Lines; private TextBox LinesText; private Label Methods; private TextBox MethodsText; private Label Classes; private TextBox ClassesText; private Button Compile; private Label Output; private TextBox OutputText; private IContainer components = null; protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); } private void InitializeComponent() { this.SuspendLayout(); // Lines this.Lines = new Label(); this.Lines.Location = new Point(25, 10); this.Lines.Name = "Lines"; this.Lines.Size = new Size(100, 25); this.Lines.Text = "Lines:"; // LinesText this.LinesText = new TextBox(); this.LinesText.Location = new Point(25, 40); this.LinesText.Multiline = true; this.LinesText.Name = "LinesText"; this.LinesText.Size = new Size(750, 125); this.LinesText.ScrollBars = ScrollBars.Vertical; // Methods this.Methods = new Label(); this.Methods.Location = new Point(25, 170); this.Methods.Name = "Methods"; this.Methods.Size = new Size(100, 25); this.Methods.Text = "Methods:"; // MethodsText this.MethodsText = new TextBox(); this.MethodsText.Location = new Point(25, 200); this.MethodsText.Multiline = true; this.MethodsText.Name = "MethodsText"; this.MethodsText.Size = new Size(750, 125); this.MethodsText.ScrollBars = ScrollBars.Vertical; // Classes this.Classes = new Label(); this.Classes.Location = new Point(25, 330); this.Classes.Name = "Classes"; this.Classes.Size = new Size(100, 25); this.Classes.Text = "Classes:"; // ClassesText this.ClassesText = new TextBox(); this.ClassesText.Location = new Point(25, 360); this.ClassesText.Multiline = true; this.ClassesText.Name = "ClassesText"; this.ClassesText.Size = new Size(750, 125); this.ClassesText.ScrollBars = ScrollBars.Vertical; // Compile this.Compile = new Button(); this.Compile.Location = new Point(25, 490); this.Compile.Name = "Compile"; this.Compile.Size = new Size(100, 25); this.Compile.Text = "Compile and Run"; this.Compile.UseVisualStyleBackColor = true; this.Compile.Click += new System.EventHandler(this.CompileClick); // Output this.Output = new Label(); this.Output.Location = new Point(25, 520); this.Output.Name = "Output"; this.Output.Size = new Size(100, 25); this.Output.Text = "Output:"; // OutputText this.OutputText = new TextBox(); this.OutputText.Location = new Point(25, 550); this.OutputText.Multiline = true; this.OutputText.Name = "OutputText"; this.OutputText.Size = new Size(750, 125); this.OutputText.ScrollBars = ScrollBars.Vertical; // this.ClientSize = new Size(800, 700); this.Controls.Add(this.Lines); this.Controls.Add(this.LinesText); this.Controls.Add(this.Methods); this.Controls.Add(this.MethodsText); this.Controls.Add(this.Classes); this.Controls.Add(this.ClassesText); this.Controls.Add(this.Compile); this.Controls.Add(this.Output); this.Controls.Add(this.OutputText); this.Name = "MainForm"; this.Text = "Code Demo"; this.ResumeLayout(false); this.PerformLayout(); } } }