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 OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents daBrouwers As System.Data.OleDb.OleDbDataAdapter
    Friend WithEvents conBieren As System.Data.OleDb.OleDbConnection
    Friend WithEvents DsBrouwers1 As EersteVoorbeeld.dsBrouwers
    Friend WithEvents lblHead As System.Windows.Forms.Label
    Friend WithEvents lblBrouwNr As System.Windows.Forms.Label
    Friend WithEvents lblNaam As System.Windows.Forms.Label
    Friend WithEvents lblAdres As System.Windows.Forms.Label
    Friend WithEvents lblPostcode As System.Windows.Forms.Label
    Friend WithEvents lblGemeente As System.Windows.Forms.Label
    Friend WithEvents lblOmzet As System.Windows.Forms.Label
    Friend WithEvents btnGegOph As System.Windows.Forms.Button
    Friend WithEvents btnEerste As System.Windows.Forms.Button
    Friend WithEvents btnVolgende As System.Windows.Forms.Button
    Friend WithEvents btnVorige As System.Windows.Forms.Button
    Friend WithEvents btnLaatste As System.Windows.Forms.Button
    Friend WithEvents txtBrouwNr As System.Windows.Forms.TextBox
    Friend WithEvents txtNaam As System.Windows.Forms.TextBox
    Friend WithEvents txtAdres As System.Windows.Forms.TextBox
    Friend WithEvents txtPostcode As System.Windows.Forms.TextBox
    Friend WithEvents txtGemeente As System.Windows.Forms.TextBox
    Friend WithEvents txtOmzet As System.Windows.Forms.TextBox
    Friend WithEvents lblTeller As System.Windows.Forms.Label
    Friend WithEvents cboxBrouwers As System.Windows.Forms.ComboBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.daBrouwers = New System.Data.OleDb.OleDbDataAdapter()
        Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand()
        Me.conBieren = New System.Data.OleDb.OleDbConnection()
        Me.DsBrouwers1 = New EersteVoorbeeld.dsBrouwers()
        Me.lblHead = New System.Windows.Forms.Label()
        Me.lblBrouwNr = New System.Windows.Forms.Label()
        Me.lblNaam = New System.Windows.Forms.Label()
        Me.lblAdres = New System.Windows.Forms.Label()
        Me.lblPostcode = New System.Windows.Forms.Label()
        Me.lblGemeente = New System.Windows.Forms.Label()
        Me.lblOmzet = New System.Windows.Forms.Label()
        Me.lblTeller = New System.Windows.Forms.Label()
        Me.btnGegOph = New System.Windows.Forms.Button()
        Me.btnEerste = New System.Windows.Forms.Button()
        Me.btnVolgende = New System.Windows.Forms.Button()
        Me.btnVorige = New System.Windows.Forms.Button()
        Me.btnLaatste = New System.Windows.Forms.Button()
        Me.txtBrouwNr = New System.Windows.Forms.TextBox()
        Me.txtNaam = New System.Windows.Forms.TextBox()
        Me.txtAdres = New System.Windows.Forms.TextBox()
        Me.txtPostcode = New System.Windows.Forms.TextBox()
        Me.txtGemeente = New System.Windows.Forms.TextBox()
        Me.txtOmzet = New System.Windows.Forms.TextBox()
        Me.cboxBrouwers = New System.Windows.Forms.ComboBox()
        CType(Me.DsBrouwers1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'daBrouwers
        '
        Me.daBrouwers.SelectCommand = Me.OleDbSelectCommand1
        Me.daBrouwers.TableMappings.AddRange(New System.Data.Common.DataTableMapping() {New System.Data.Common.DataTableMapping("Table", "Brouwers", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("Brouwernummer", "Brouwernummer"), New System.Data.Common.DataColumnMapping("Naam", "Naam"), New System.Data.Common.DataColumnMapping("Adres", "Adres"), New System.Data.Common.DataColumnMapping("PostCode", "PostCode"), New System.Data.Common.DataColumnMapping("Gemeente", "Gemeente"), New System.Data.Common.DataColumnMapping("Omzet", "Omzet")})})
        '
        'OleDbSelectCommand1
        '
        Me.OleDbSelectCommand1.CommandText = "SELECT Brouwers.BrouwerNr AS Brouwernummer, Brouwers.Naam, Brouwers.Adres, Brouwe" & _
        "rs.PostCode, Gemeenten.Gemeente, Brouwers.Omzet, Gemeenten.Postcode AS Expr1 FRO" & _
        "M (Brouwers INNER JOIN Gemeenten ON Brouwers.PostCode = Gemeenten.Postcode)"
        Me.OleDbSelectCommand1.Connection = Me.conBieren
        '
        'conBieren
        '
        Me.conBieren.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=C:\Documen" & _
        "ts and Settings\Stompie\Mijn documenten\School\2Info\RAD\Oefeningen\Bieren.mdb;M" & _
        "ode=Share Deny None;Extended Properties="""";Jet OLEDB:System database="""";Jet OLED" & _
        "B:Registry Path="""";Jet OLEDB:Database Password="""";Jet OLEDB:Engine Type=5;Jet OL" & _
        "EDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global" & _
        " Bulk Transactions=1;Jet OLEDB:New Database Password="""";Jet OLEDB:Create System " & _
        "Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on C" & _
        "ompact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False"
        '
        'DsBrouwers1
        '
        Me.DsBrouwers1.DataSetName = "dsBrouwers"
        Me.DsBrouwers1.Locale = New System.Globalization.CultureInfo("nl-BE")
        Me.DsBrouwers1.Namespace = "http://www.tempuri.org/dsBrouwers.xsd"
        '
        'lblHead
        '
        Me.lblHead.Font = New System.Drawing.Font("Verdana", 20.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblHead.Location = New System.Drawing.Point(8, 0)
        Me.lblHead.Name = "lblHead"
        Me.lblHead.Size = New System.Drawing.Size(496, 32)
        Me.lblHead.TabIndex = 0
        Me.lblHead.Text = "Overzicht brouwers"
        Me.lblHead.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'lblBrouwNr
        '
        Me.lblBrouwNr.Location = New System.Drawing.Point(24, 40)
        Me.lblBrouwNr.Name = "lblBrouwNr"
        Me.lblBrouwNr.Size = New System.Drawing.Size(64, 24)
        Me.lblBrouwNr.TabIndex = 1
        Me.lblBrouwNr.Text = "Brouwernr:"
        '
        'lblNaam
        '
        Me.lblNaam.Location = New System.Drawing.Point(24, 64)
        Me.lblNaam.Name = "lblNaam"
        Me.lblNaam.Size = New System.Drawing.Size(64, 24)
        Me.lblNaam.TabIndex = 2
        Me.lblNaam.Text = "Naam:"
        '
        'lblAdres
        '
        Me.lblAdres.Location = New System.Drawing.Point(24, 88)
        Me.lblAdres.Name = "lblAdres"
        Me.lblAdres.Size = New System.Drawing.Size(64, 24)
        Me.lblAdres.TabIndex = 3
        Me.lblAdres.Text = "Adres:"
        '
        'lblPostcode
        '
        Me.lblPostcode.Location = New System.Drawing.Point(24, 112)
        Me.lblPostcode.Name = "lblPostcode"
        Me.lblPostcode.Size = New System.Drawing.Size(64, 24)
        Me.lblPostcode.TabIndex = 4
        Me.lblPostcode.Text = "Postcode:"
        '
        'lblGemeente
        '
        Me.lblGemeente.Location = New System.Drawing.Point(24, 136)
        Me.lblGemeente.Name = "lblGemeente"
        Me.lblGemeente.Size = New System.Drawing.Size(64, 24)
        Me.lblGemeente.TabIndex = 5
        Me.lblGemeente.Text = "Gemeente:"
        '
        'lblOmzet
        '
        Me.lblOmzet.Location = New System.Drawing.Point(24, 160)
        Me.lblOmzet.Name = "lblOmzet"
        Me.lblOmzet.Size = New System.Drawing.Size(64, 24)
        Me.lblOmzet.TabIndex = 6
        Me.lblOmzet.Text = "Omzet:"
        '
        'lblTeller
        '
        Me.lblTeller.Location = New System.Drawing.Point(344, 72)
        Me.lblTeller.Name = "lblTeller"
        Me.lblTeller.Size = New System.Drawing.Size(136, 16)
        Me.lblTeller.TabIndex = 7
        '
        'btnGegOph
        '
        Me.btnGegOph.Location = New System.Drawing.Point(24, 216)
        Me.btnGegOph.Name = "btnGegOph"
        Me.btnGegOph.Size = New System.Drawing.Size(80, 24)
        Me.btnGegOph.TabIndex = 8
        Me.btnGegOph.Text = "Geg ophalen"
        '
        'btnEerste
        '
        Me.btnEerste.Location = New System.Drawing.Point(136, 216)
        Me.btnEerste.Name = "btnEerste"
        Me.btnEerste.Size = New System.Drawing.Size(64, 24)
        Me.btnEerste.TabIndex = 9
        Me.btnEerste.Text = "Eerste"
        '
        'btnVolgende
        '
        Me.btnVolgende.Location = New System.Drawing.Point(232, 216)
        Me.btnVolgende.Name = "btnVolgende"
        Me.btnVolgende.Size = New System.Drawing.Size(64, 24)
        Me.btnVolgende.TabIndex = 10
        Me.btnVolgende.Text = "Volgende"
        '
        'btnVorige
        '
        Me.btnVorige.Location = New System.Drawing.Point(328, 216)
        Me.btnVorige.Name = "btnVorige"
        Me.btnVorige.Size = New System.Drawing.Size(64, 24)
        Me.btnVorige.TabIndex = 11
        Me.btnVorige.Text = "Vorige"
        '
        'btnLaatste
        '
        Me.btnLaatste.Location = New System.Drawing.Point(424, 216)
        Me.btnLaatste.Name = "btnLaatste"
        Me.btnLaatste.Size = New System.Drawing.Size(64, 24)
        Me.btnLaatste.TabIndex = 12
        Me.btnLaatste.Text = "Laatste"
        '
        'txtBrouwNr
        '
        Me.txtBrouwNr.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Brouwernummer"))
        Me.txtBrouwNr.Location = New System.Drawing.Point(112, 40)
        Me.txtBrouwNr.Name = "txtBrouwNr"
        Me.txtBrouwNr.Size = New System.Drawing.Size(96, 20)
        Me.txtBrouwNr.TabIndex = 13
        Me.txtBrouwNr.Text = ""
        '
        'txtNaam
        '
        Me.txtNaam.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Naam"))
        Me.txtNaam.Location = New System.Drawing.Point(112, 64)
        Me.txtNaam.Name = "txtNaam"
        Me.txtNaam.Size = New System.Drawing.Size(168, 20)
        Me.txtNaam.TabIndex = 14
        Me.txtNaam.Text = ""
        '
        'txtAdres
        '
        Me.txtAdres.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Adres"))
        Me.txtAdres.Location = New System.Drawing.Point(112, 88)
        Me.txtAdres.Name = "txtAdres"
        Me.txtAdres.Size = New System.Drawing.Size(168, 20)
        Me.txtAdres.TabIndex = 15
        Me.txtAdres.Text = ""
        '
        'txtPostcode
        '
        Me.txtPostcode.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.PostCode"))
        Me.txtPostcode.Location = New System.Drawing.Point(112, 112)
        Me.txtPostcode.Name = "txtPostcode"
        Me.txtPostcode.Size = New System.Drawing.Size(96, 20)
        Me.txtPostcode.TabIndex = 16
        Me.txtPostcode.Text = ""
        '
        'txtGemeente
        '
        Me.txtGemeente.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Gemeente"))
        Me.txtGemeente.Location = New System.Drawing.Point(112, 136)
        Me.txtGemeente.Name = "txtGemeente"
        Me.txtGemeente.Size = New System.Drawing.Size(168, 20)
        Me.txtGemeente.TabIndex = 17
        Me.txtGemeente.Text = ""
        '
        'txtOmzet
        '
        Me.txtOmzet.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Omzet"))
        Me.txtOmzet.Location = New System.Drawing.Point(112, 160)
        Me.txtOmzet.Name = "txtOmzet"
        Me.txtOmzet.Size = New System.Drawing.Size(96, 20)
        Me.txtOmzet.TabIndex = 18
        Me.txtOmzet.Text = ""
        '
        'cboxBrouwers
        '
        Me.cboxBrouwers.DataSource = Me.DsBrouwers1
        Me.cboxBrouwers.DisplayMember = "Brouwers.Naam"
        Me.cboxBrouwers.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboxBrouwers.Location = New System.Drawing.Point(344, 104)
        Me.cboxBrouwers.Name = "cboxBrouwers"
        Me.cboxBrouwers.Size = New System.Drawing.Size(136, 21)
        Me.cboxBrouwers.TabIndex = 19
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(512, 253)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.cboxBrouwers, Me.txtOmzet, Me.txtGemeente, Me.txtPostcode, Me.txtAdres, Me.txtNaam, Me.txtBrouwNr, Me.btnLaatste, Me.btnVorige, Me.btnVolgende, Me.btnEerste, Me.btnGegOph, Me.lblTeller, Me.lblOmzet, Me.lblGemeente, Me.lblPostcode, Me.lblAdres, Me.lblNaam, Me.lblBrouwNr, Me.lblHead})
        Me.Name = "Form1"
        Me.Text = "Form1"
        CType(Me.DsBrouwers1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub OleDbDataAdapter1_RowUpdated(ByVal sender As System.Object, ByVal e As System.Data.OleDb.OleDbRowUpdatedEventArgs) Handles daBrouwers.RowUpdated

    End Sub

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

    End Sub

    Private Sub btnGegOph_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGegOph.Click
        DsBrouwers1.Clear()
        daBrouwers.Fill(DsBrouwers1)

    End Sub

    Private Sub btnEerste_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEerste.Click
        Me.BindingContext(DsBrouwers1, "Brouwers").Position = 0
    End Sub

    Private Sub btnVolgende_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVolgende.Click
        Me.BindingContext(DsBrouwers1, "Brouwers").Position += 1
    End Sub

    Private Sub btnVorige_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVorige.Click
        Me.BindingContext(DsBrouwers1, "Brouwers").Position -= 1
    End Sub

    Private Sub btnLaatste_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLaatste.Click
        Me.BindingContext(DsBrouwers1, "Brouwers").Position = Me.BindingContext(DsBrouwers1, "Brouwers").Count - 1
    End Sub

    Private Sub txtBrouwNr_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtBrouwNr.TextChanged
        lblTeller.Text = "Record " & _
        Me.BindingContext(DsBrouwers1, "Brouwers").Position + 1 & " van " & _
        Me.BindingContext(DsBrouwers1, "Brouwers").Count
    End Sub
End Class
