?? frmselect.vb
字號:
Public Class frmSelect
Inherits System.Windows.Forms.Form
Private dtData As DataTable
Private dtSubject As DataTable
#Region " Windows 窗體設計器生成的代碼 "
Public Sub New()
MyBase.New()
'該調用是 Windows 窗體設計器所必需的。
InitializeComponent()
'在 InitializeComponent() 調用之后添加任何初始化
End Sub
'窗體重寫 dispose 以清理組件列表。
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
'Windows 窗體設計器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下過程是 Windows 窗體設計器所必需的
'可以使用 Windows 窗體設計器修改此過程。
'不要使用代碼編輯器修改它。
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents dgdList As System.Windows.Forms.DataGrid
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents txbGrade As System.Windows.Forms.TextBox
Friend WithEvents txbName As System.Windows.Forms.TextBox
Friend WithEvents txbId As System.Windows.Forms.TextBox
Friend WithEvents btnDisplay As System.Windows.Forms.Button
Friend WithEvents btnDel As System.Windows.Forms.Button
Friend WithEvents btnSelect As System.Windows.Forms.Button
Friend WithEvents btnSearch As System.Windows.Forms.Button
Friend WithEvents txbCNumber As System.Windows.Forms.TextBox
Friend WithEvents txbCId As System.Windows.Forms.TextBox
Friend WithEvents txbCName As System.Windows.Forms.TextBox
Friend WithEvents txbPY As System.Windows.Forms.TextBox
Friend WithEvents dgdSubject As System.Windows.Forms.DataGrid
Friend WithEvents grbTop As System.Windows.Forms.GroupBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmSelect))
Me.grbTop = New System.Windows.Forms.GroupBox
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.txbGrade = New System.Windows.Forms.TextBox
Me.txbName = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.txbId = New System.Windows.Forms.TextBox
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.dgdList = New System.Windows.Forms.DataGrid
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.Label9 = New System.Windows.Forms.Label
Me.dgdSubject = New System.Windows.Forms.DataGrid
Me.btnDisplay = New System.Windows.Forms.Button
Me.btnDel = New System.Windows.Forms.Button
Me.btnSelect = New System.Windows.Forms.Button
Me.btnSearch = New System.Windows.Forms.Button
Me.Label8 = New System.Windows.Forms.Label
Me.txbCNumber = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.txbCId = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.txbCName = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.txbPY = New System.Windows.Forms.TextBox
Me.grbTop.SuspendLayout()
Me.GroupBox1.SuspendLayout()
CType(Me.dgdList, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox2.SuspendLayout()
CType(Me.dgdSubject, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'grbTop
'
Me.grbTop.Controls.Add(Me.Label4)
Me.grbTop.Controls.Add(Me.Label3)
Me.grbTop.Controls.Add(Me.txbGrade)
Me.grbTop.Controls.Add(Me.txbName)
Me.grbTop.Controls.Add(Me.Label2)
Me.grbTop.Controls.Add(Me.Label1)
Me.grbTop.Controls.Add(Me.txbId)
Me.grbTop.Dock = System.Windows.Forms.DockStyle.Top
Me.grbTop.Location = New System.Drawing.Point(0, 0)
Me.grbTop.Name = "grbTop"
Me.grbTop.Size = New System.Drawing.Size(640, 64)
Me.grbTop.TabIndex = 3
Me.grbTop.TabStop = False
Me.grbTop.Text = "學生信息"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(376, 11)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(256, 40)
Me.Label4.TabIndex = 7
Me.Label4.Text = "這里輸入學號后回車,正常操作是學生用自己的學號登陸到系統,只能選擇自己的課程。因為系統沒有制作登陸功能,所以這么處理。"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(264, 27)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(32, 15)
Me.Label3.TabIndex = 6
Me.Label3.Text = "班級"
'
'txbGrade
'
Me.txbGrade.Location = New System.Drawing.Point(304, 22)
Me.txbGrade.Name = "txbGrade"
Me.txbGrade.ReadOnly = True
Me.txbGrade.Size = New System.Drawing.Size(56, 21)
Me.txbGrade.TabIndex = 5
Me.txbGrade.Text = ""
'
'txbName
'
Me.txbName.Location = New System.Drawing.Point(192, 22)
Me.txbName.Name = "txbName"
Me.txbName.ReadOnly = True
Me.txbName.Size = New System.Drawing.Size(56, 21)
Me.txbName.TabIndex = 4
Me.txbName.Text = ""
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(160, 27)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(32, 15)
Me.Label2.TabIndex = 3
Me.Label2.Text = "姓名"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 27)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(32, 15)
Me.Label1.TabIndex = 2
Me.Label1.Text = "學號"
'
'txbId
'
Me.txbId.Location = New System.Drawing.Point(40, 22)
Me.txbId.Name = "txbId"
Me.txbId.Size = New System.Drawing.Size(112, 21)
Me.txbId.TabIndex = 1
Me.txbId.Text = ""
'
'GroupBox1
'
Me.GroupBox1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.GroupBox1.Controls.Add(Me.dgdList)
Me.GroupBox1.Location = New System.Drawing.Point(0, 64)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(640, 120)
Me.GroupBox1.TabIndex = 4
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "已選課程"
'
'dgdList
'
Me.dgdList.CaptionVisible = False
Me.dgdList.DataMember = ""
Me.dgdList.Dock = System.Windows.Forms.DockStyle.Fill
Me.dgdList.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgdList.Location = New System.Drawing.Point(3, 17)
Me.dgdList.Name = "dgdList"
Me.dgdList.Size = New System.Drawing.Size(634, 100)
Me.dgdList.TabIndex = 0
'
'GroupBox2
'
Me.GroupBox2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.GroupBox2.Controls.Add(Me.Label9)
Me.GroupBox2.Controls.Add(Me.dgdSubject)
Me.GroupBox2.Controls.Add(Me.btnDisplay)
Me.GroupBox2.Controls.Add(Me.btnDel)
Me.GroupBox2.Controls.Add(Me.btnSelect)
Me.GroupBox2.Controls.Add(Me.btnSearch)
Me.GroupBox2.Controls.Add(Me.Label8)
Me.GroupBox2.Controls.Add(Me.txbCNumber)
Me.GroupBox2.Controls.Add(Me.Label7)
Me.GroupBox2.Controls.Add(Me.txbCId)
Me.GroupBox2.Controls.Add(Me.Label6)
Me.GroupBox2.Controls.Add(Me.txbCName)
Me.GroupBox2.Controls.Add(Me.Label5)
Me.GroupBox2.Controls.Add(Me.txbPY)
Me.GroupBox2.Location = New System.Drawing.Point(0, 184)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(640, 136)
Me.GroupBox2.TabIndex = 5
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "課程信息"
'
'Label9
'
Me.Label9.Location = New System.Drawing.Point(288, 40)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(328, 40)
Me.Label9.TabIndex = 16
Me.Label9.Text = "選擇相應的課程序號,單擊【選課】按鈕,系統先檢查該課程編號是否已選或上課時間是否沖突,注意一個課程編號可以對應多個課序號,既一門課在多個時間上的情況。"
'
'dgdSubject
'
Me.dgdSubject.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.dgdSubject.CaptionVisible = False
Me.dgdSubject.DataMember = ""
Me.dgdSubject.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgdSubject.Location = New System.Drawing.Point(3, 88)
Me.dgdSubject.Name = "dgdSubject"
Me.dgdSubject.Size = New System.Drawing.Size(634, 44)
Me.dgdSubject.TabIndex = 15
'
'btnDisplay
'
Me.btnDisplay.Location = New System.Drawing.Point(512, 13)
Me.btnDisplay.Name = "btnDisplay"
Me.btnDisplay.Size = New System.Drawing.Size(64, 23)
Me.btnDisplay.TabIndex = 14
Me.btnDisplay.Text = "顯示課表"
'
'btnDel
'
Me.btnDel.Location = New System.Drawing.Point(440, 13)
Me.btnDel.Name = "btnDel"
Me.btnDel.Size = New System.Drawing.Size(48, 23)
Me.btnDel.TabIndex = 13
Me.btnDel.Text = "刪除"
'
'btnSelect
'
Me.btnSelect.Location = New System.Drawing.Point(368, 13)
Me.btnSelect.Name = "btnSelect"
Me.btnSelect.Size = New System.Drawing.Size(48, 23)
Me.btnSelect.TabIndex = 12
Me.btnSelect.Text = "選課"
'
'btnSearch
'
Me.btnSearch.Location = New System.Drawing.Point(288, 13)
Me.btnSearch.Name = "btnSearch"
Me.btnSearch.Size = New System.Drawing.Size(48, 23)
Me.btnSearch.TabIndex = 11
Me.btnSearch.Text = "查詢"
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(152, 52)
Me.Label8.Name = "Label8"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -