Imports System.Data.OleDb
Imports System
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Collections
Imports System.Drawing.Drawing2D
Imports System.Globalization
Imports System.Threading
Public Class Onderwyserlist
Inherits System.Windows.Forms.Form
'from tex tips
Private callingform As SondagSkool
#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 ListBox1 As System.Windows.Forms.ListBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents ok As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Onderwyserlist))
Me.ListBox1 = New System.Windows.Forms.ListBox
Me.Label1 = New System.Windows.Forms.Label
Me.ok = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'ListBox1
'
Me.ListBox1.Location = New System.Drawing.Point(0, 48)
Me.ListBox1.Name = "ListBox1"
Me.ListBox1.Size = New System.Drawing.Size(240, 173)
Me.ListBox1.TabIndex = 223
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Verdana", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.SystemColors.ActiveCaption
Me.Label1.Location = New System.Drawing.Point(40, 16)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(160, 23)
Me.Label1.TabIndex = 224
Me.Label1.Text = "Kies onderwyser"
'
'ok
'
Me.ok.Location = New System.Drawing.Point(80, 240)
Me.ok.Name = "ok"
Me.ok.TabIndex = 225
Me.ok.Text = "Kies"
'
'Onderwyserlist
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(224, Byte), CType(192, Byte))
Me.ClientSize = New System.Drawing.Size(256, 270)
Me.Controls.Add(Me.ok)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.ListBox1)
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.Name = "Onderwyserlist"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "Onderwyserlys"
Me.ResumeLayout(False)
End Sub
#End Region
Dim DB As OleDb.OleDbConnection
Dim Dc As New OleDb.OleDbCommand
Dim Da As New OleDb.OleDbDataAdapter
Dim Ds As New DataSet
Dim Nextb As Long
Dim PrevB As Long
Dim TotalC As Long
Public Sub New(ByVal caller As SondagSkool)
Me.New()
callingform = caller
End Sub
Private Sub ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ok.Click
Me.Close()
End Sub
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
callingform.txtonnie.Text = ListBox1.SelectedItem.ToString
End Sub