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

Partial Class MainForm
    Inherits Form
    Private textBox1 As TextBox
    Private textBox2 As TextBox
    Private textBox3 As TextBox
    Private button1 As Button
    Private Sub InitializeComponent()
        textBox1 = New TextBox
        textBox2 = New TextBox
        textBox3 = New TextBox
        button1 = New Button
        SuspendLayout
        textBox1.Location = New Point(40, 20)
        textBox1.Size = New Size(100, 20)
        textBox2.Location = New Point(40, 60)
        textBox2.Size = New Size(100, 20)
        textBox3.Location = New Point(40, 100)
        textBox3.Size = New Size(100, 20)
        button1.Location = New Point(40, 140)
        button1.Size = New Size(100, 20)
        button1.Text = "Divide"
        AddHandler button1.Click, AddressOf Button1Click
        ClientSize = New Size(180, 180)
        Controls.Add(textBox1)
        Controls.Add(textBox2)
        Controls.Add(textBox3)
        Controls.Add(button1)
        Text = "Divide"
        ResumeLayout(false)
        PerformLayout
    End Sub
End Class
