' 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) 
Imports System.Drawing;
Imports System.Windows.Forms

Partial Class MainForm
    Inherits Form
    Private button1 As Button
    Private textBox1 As TextBox
    Private components As System.ComponentModel.IContainer
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If components IsNot Nothing Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub
    Private Sub InitializeComponent()
        textBox1 = New TextBox
        button1 = New Button
        SuspendLayout
        textBox1.Location = New Point(86, 54)
        textBox1.Multiline = true
        textBox1.Name = "textBox1"
        textBox1.Size = New Size(100, 200)
        textBox1.TabIndex = 0
        button1.Location = New Point(86, 290)
        button1.Name = "button1"
        button1.Size = New Size(75, 23)
        button1.TabIndex = 1
        button1.Text = "button1"
        button1.UseVisualStyleBackColor = true
        AddHandler button1.Click, AddressOf Button1Click
        AutoScaleDimensions = New SizeF(6!, 13!)
        AutoScaleMode = AutoScaleMode.Font
        ClientSize = New Size(292, 352)
        Controls.Add(button1)
        Controls.Add(textBox1)
        Name = "MainForm"
        Text = "E"
        ResumeLayout(false)
        PerformLayout
    End Sub
End Class
