// 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 Button button1; private ListBox listBox3; private ListBox listBox2; private ListBox listBox1; private void InitializeComponent() { listBox1 = new ListBox(); listBox2 = new ListBox(); listBox3 = new ListBox(); button1 = new Button(); SuspendLayout(); listBox1.Location = new Point(25, 25); listBox1.Size = new Size(100, 100); listBox2.Location = new Point(150, 25); listBox2.Size = new Size(100, 100); listBox3.Location = new Point(275, 25); listBox3.Size = new Size(100, 100); button1.Location = new Point(25, 150); button1.Size = new Size(350, 25); button1.Text = "Eval"; button1.Click += new System.EventHandler(Button1Click); ClientSize = new Size(400, 200); Controls.Add(button1); Controls.Add(listBox3); Controls.Add(listBox2); Controls.Add(listBox1); Text = "XML to ListBox demo"; ResumeLayout(false); } } }