// 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.Windows.Forms; using System.Drawing; namespace E { partial class MainForm { private RichTextBox rtb; private Button btn; private TextBox tb; private void InitializeComponent() { tb = new TextBox(); btn = new Button(); rtb = new RichTextBox(); SuspendLayout(); tb.Location = new Point(50, 25); tb.Multiline = true; tb.Size = new Size(200, 75); btn.Location = new Point(50, 125); btn.Size = new Size(200, 25); btn.Text = "Convert"; btn.Click += new System.EventHandler(Button1Click); rtb.Location = new Point(50, 175); rtb.Name = "richTextBox1"; rtb.Size = new Size(200, 75); ClientSize = new Size(300, 275); Controls.Add(rtb); Controls.Add(btn); Controls.Add(tb); Name = "MainForm"; ResumeLayout(false); } } }