Public Class Form1
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents lblTestGUI As System.Windows.Forms.Label
    Friend WithEvents ChkKader As System.Windows.Forms.CheckBox
    Friend WithEvents Achtergrondkleur As System.Windows.Forms.GroupBox
    Friend WithEvents voorgrondkleur As System.Windows.Forms.GroupBox
    Friend WithEvents RbtnWit As System.Windows.Forms.RadioButton
    Friend WithEvents RbtnGeel As System.Windows.Forms.RadioButton
    Friend WithEvents RbtnGroen As System.Windows.Forms.RadioButton
    Friend WithEvents RbtnBlauw As System.Windows.Forms.RadioButton
    Friend WithEvents MainMenuHoofd As System.Windows.Forms.MainMenu
    Friend WithEvents MenuItemBestand As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemAfsluiten As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemOpmaak As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemAchtergrond As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemWit As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemGeel As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemVoorgrond As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemGroen As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemBlauw As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItemKader As System.Windows.Forms.MenuItem
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.lblTestGUI = New System.Windows.Forms.Label
        Me.ChkKader = New System.Windows.Forms.CheckBox
        Me.Achtergrondkleur = New System.Windows.Forms.GroupBox
        Me.RbtnGeel = New System.Windows.Forms.RadioButton
        Me.RbtnWit = New System.Windows.Forms.RadioButton
        Me.voorgrondkleur = New System.Windows.Forms.GroupBox
        Me.RbtnBlauw = New System.Windows.Forms.RadioButton
        Me.RbtnGroen = New System.Windows.Forms.RadioButton
        Me.MainMenuHoofd = New System.Windows.Forms.MainMenu
        Me.MenuItemBestand = New System.Windows.Forms.MenuItem
        Me.MenuItemAfsluiten = New System.Windows.Forms.MenuItem
        Me.MenuItemOpmaak = New System.Windows.Forms.MenuItem
        Me.MenuItemAchtergrond = New System.Windows.Forms.MenuItem
        Me.MenuItemWit = New System.Windows.Forms.MenuItem
        Me.MenuItemGeel = New System.Windows.Forms.MenuItem
        Me.MenuItemVoorgrond = New System.Windows.Forms.MenuItem
        Me.MenuItemGroen = New System.Windows.Forms.MenuItem
        Me.MenuItemBlauw = New System.Windows.Forms.MenuItem
        Me.MenuItemKader = New System.Windows.Forms.MenuItem
        Me.Achtergrondkleur.SuspendLayout()
        Me.voorgrondkleur.SuspendLayout()
        Me.SuspendLayout()
        '
        'lblTestGUI
        '
        Me.lblTestGUI.Font = New System.Drawing.Font("Comic Sans MS", 21.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblTestGUI.Location = New System.Drawing.Point(16, 8)
        Me.lblTestGUI.Name = "lblTestGUI"
        Me.lblTestGUI.Size = New System.Drawing.Size(456, 40)
        Me.lblTestGUI.TabIndex = 0
        Me.lblTestGUI.Text = "Test GUI"
        Me.lblTestGUI.TextAlign = System.Drawing.ContentAlignment.TopCenter
        '
        'ChkKader
        '
        Me.ChkKader.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.ChkKader.Location = New System.Drawing.Point(24, 64)
        Me.ChkKader.Name = "ChkKader"
        Me.ChkKader.Size = New System.Drawing.Size(88, 32)
        Me.ChkKader.TabIndex = 1
        Me.ChkKader.Text = "&Kader"
        '
        'Achtergrondkleur
        '
        Me.Achtergrondkleur.Controls.Add(Me.RbtnGeel)
        Me.Achtergrondkleur.Controls.Add(Me.RbtnWit)
        Me.Achtergrondkleur.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Achtergrondkleur.Location = New System.Drawing.Point(24, 112)
        Me.Achtergrondkleur.Name = "Achtergrondkleur"
        Me.Achtergrondkleur.Size = New System.Drawing.Size(184, 120)
        Me.Achtergrondkleur.TabIndex = 2
        Me.Achtergrondkleur.TabStop = False
        Me.Achtergrondkleur.Text = "Achtergrondkleur"
        '
        'RbtnGeel
        '
        Me.RbtnGeel.Location = New System.Drawing.Point(16, 72)
        Me.RbtnGeel.Name = "RbtnGeel"
        Me.RbtnGeel.Size = New System.Drawing.Size(80, 32)
        Me.RbtnGeel.TabIndex = 1
        Me.RbtnGeel.Text = "&Geel"
        '
        'RbtnWit
        '
        Me.RbtnWit.Location = New System.Drawing.Point(16, 32)
        Me.RbtnWit.Name = "RbtnWit"
        Me.RbtnWit.Size = New System.Drawing.Size(80, 32)
        Me.RbtnWit.TabIndex = 0
        Me.RbtnWit.Text = "&Wit"
        '
        'voorgrondkleur
        '
        Me.voorgrondkleur.Controls.Add(Me.RbtnBlauw)
        Me.voorgrondkleur.Controls.Add(Me.RbtnGroen)
        Me.voorgrondkleur.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.voorgrondkleur.Location = New System.Drawing.Point(264, 112)
        Me.voorgrondkleur.Name = "voorgrondkleur"
        Me.voorgrondkleur.Size = New System.Drawing.Size(184, 120)
        Me.voorgrondkleur.TabIndex = 3
        Me.voorgrondkleur.TabStop = False
        Me.voorgrondkleur.Text = "Voorgrondkleur"
        '
        'RbtnBlauw
        '
        Me.RbtnBlauw.Location = New System.Drawing.Point(16, 72)
        Me.RbtnBlauw.Name = "RbtnBlauw"
        Me.RbtnBlauw.Size = New System.Drawing.Size(80, 32)
        Me.RbtnBlauw.TabIndex = 2
        Me.RbtnBlauw.Text = "&Blauw"
        '
        'RbtnGroen
        '
        Me.RbtnGroen.Location = New System.Drawing.Point(16, 32)
        Me.RbtnGroen.Name = "RbtnGroen"
        Me.RbtnGroen.Size = New System.Drawing.Size(80, 32)
        Me.RbtnGroen.TabIndex = 1
        Me.RbtnGroen.Text = "G&roen"
        '
        'MainMenuHoofd
        '
        Me.MainMenuHoofd.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItemBestand, Me.MenuItemOpmaak})
        '
        'MenuItemBestand
        '
        Me.MenuItemBestand.Index = 0
        Me.MenuItemBestand.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItemAfsluiten})
        Me.MenuItemBestand.Text = "&Bestand"
        '
        'MenuItemAfsluiten
        '
        Me.MenuItemAfsluiten.Index = 0
        Me.MenuItemAfsluiten.Text = "&Afsluiten"
        '
        'MenuItemOpmaak
        '
        Me.MenuItemOpmaak.Index = 1
        Me.MenuItemOpmaak.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItemAchtergrond, Me.MenuItemVoorgrond, Me.MenuItemKader})
        Me.MenuItemOpmaak.Text = "&Opmaak"
        '
        'MenuItemAchtergrond
        '
        Me.MenuItemAchtergrond.Index = 0
        Me.MenuItemAchtergrond.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItemWit, Me.MenuItemGeel})
        Me.MenuItemAchtergrond.Text = "Achtergrond"
        '
        'MenuItemWit
        '
        Me.MenuItemWit.Index = 0
        Me.MenuItemWit.Text = "&Wit"
        '
        'MenuItemGeel
        '
        Me.MenuItemGeel.Index = 1
        Me.MenuItemGeel.Text = "&Geel"
        '
        'MenuItemVoorgrond
        '
        Me.MenuItemVoorgrond.Index = 1
        Me.MenuItemVoorgrond.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItemGroen, Me.MenuItemBlauw})
        Me.MenuItemVoorgrond.Text = "Voorgrond"
        '
        'MenuItemGroen
        '
        Me.MenuItemGroen.Index = 0
        Me.MenuItemGroen.Text = "G&roen"
        '
        'MenuItemBlauw
        '
        Me.MenuItemBlauw.Index = 1
        Me.MenuItemBlauw.Text = "&Blauw"
        '
        'MenuItemKader
        '
        Me.MenuItemKader.Index = 2
        Me.MenuItemKader.Text = "&Kader"
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(488, 273)
        Me.Controls.Add(Me.voorgrondkleur)
        Me.Controls.Add(Me.Achtergrondkleur)
        Me.Controls.Add(Me.ChkKader)
        Me.Controls.Add(Me.lblTestGUI)
        Me.Menu = Me.MainMenuHoofd
        Me.Name = "Form1"
        Me.Text = "Test GUI"
        Me.Achtergrondkleur.ResumeLayout(False)
        Me.voorgrondkleur.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub ChkKader_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChkKader.CheckedChanged
        If ChkKader.Checked = True Then
        lblTestGUI.BorderStyle = BorderStyle.FixedSingle
        else
            lblTestGUI.BorderStyle = BorderStyle.None
        End If
    End Sub

    Private Sub RbtnWit_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbtnWit.CheckedChanged
        AchtergrondWit()
    End Sub

    Private Sub RbtnGeel_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbtnGeel.CheckedChanged
        AchtergrondGeel()
    End Sub

    Private Sub RbtnGroen_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbtnGroen.CheckedChanged
        VoorgrondGroen()
    End Sub

    Private Sub RbtnBlauw_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbtnBlauw.CheckedChanged
        VoorgrondBlauw()
    End Sub

    Private Sub MenuItemAfsluiten_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItemAfsluiten.Click
        Afsluiten()
    End Sub
    Private Sub Afsluiten()
        Me.Close()
    End Sub

    Private Sub MenuItemWit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItemWit.Click
        AchtergrondWit()
    End Sub
    Private Sub AchtergrondWit()
        lblTestGUI.BackColor = Color.White
    End Sub

    Private Sub MenuItemGeel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItemGeel.Click
        AchtergrondGeel()
    End Sub
    Private Sub AchtergrondGeel()
        lblTestGUI.BackColor = Color.Yellow
    End Sub

    Private Sub MenuItemGroen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItemGroen.Click
        VoorgrondGroen()
    End Sub
    Private Sub VoorgrondGroen()
        lblTestGUI.ForeColor = Color.Green
    End Sub

    Private Sub MenuItemBlauw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItemBlauw.Click
        VoorgrondBlauw()
    End Sub
    Private Sub VoorgrondBlauw()
        lblTestGUI.ForeColor = Color.Blue
    End Sub

    Private Sub MenuItemKader_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItemKader.Click
        Kader()
    End Sub
    Private Sub Kader()
        If lblTestGUI.BorderStyle = BorderStyle.None Then
            lblTestGUI.BorderStyle = BorderStyle.FixedSingle
        Else
            lblTestGUI.BorderStyle = BorderStyle.None
        End If
    End Sub
End Class
