' 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 Form1
    Inherits Form
    Public Sub New()
        MyBase.New
        Me.InitializeComponent
    End Sub
    Private Sub InitializeComponent()
        Button1 = New Button
        PictureBox1 = New PictureBox
        SuspendLayout()
        Button1.Location = New Point(100, 200)
        Button1.Name = "Button1"
        Button1.Size = New Size(100, 25)
        Button1.Text = "Button1"
        PictureBox1.Location = New Point(100, 50)
        PictureBox1.Name = "PictureBox1"
        PictureBox1.Size = New Size(100, 100)
        ClientSize = New Size(300, 300)
        Controls.Add(PictureBox1)
        Controls.Add(Button1)
        Name = "Form1"
        Text = "Form1"
        ResumeLayout(False)
    End Sub
    Friend WithEvents Button1 As Button
    Friend WithEvents PictureBox1 As PictureBox
End Class
