⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmstuscore.vb

📁 师生情况管理系统
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports SchoolManage
Imports System.Data
Imports System.Data.SqlClient

Public Class FrmStuScore
    Inherits System.Windows.Forms.Form
    Private sqlConn As SqlConnection
    Private sqlComm As SqlCommand
    Private daDate As SqlDataAdapter
    Private dsDate As DataSet
    Private flag As Int32                   '标明添加还是修改还是能够查询
    Private strSelect As String             '查询框是否有值
    Private tableNum As Int32               '查询框没值则为0,有值则为1


#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 Label1 As System.Windows.Forms.Label
    Friend WithEvents btnSelect As System.Windows.Forms.Button
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents btnAdd As System.Windows.Forms.Button
    Friend WithEvents btnUpdate As System.Windows.Forms.Button
    Friend WithEvents btnDelete As System.Windows.Forms.Button
    Friend WithEvents btnCancel As System.Windows.Forms.Button
    Friend WithEvents btnSave As System.Windows.Forms.Button
    Friend WithEvents btnExit As System.Windows.Forms.Button
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents txtID As System.Windows.Forms.TextBox
    Friend WithEvents txtName As System.Windows.Forms.TextBox
    Friend WithEvents txtTime As System.Windows.Forms.TextBox
    Friend WithEvents dgDate As System.Windows.Forms.DataGrid
    Friend WithEvents txtRemark As System.Windows.Forms.TextBox
    Friend WithEvents txtScore As System.Windows.Forms.TextBox
    Friend WithEvents cmbCourse As System.Windows.Forms.ComboBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.Label1 = New System.Windows.Forms.Label
        Me.btnSelect = New System.Windows.Forms.Button
        Me.txtID = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.txtName = New System.Windows.Forms.TextBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.txtScore = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.txtTime = New System.Windows.Forms.TextBox
        Me.dgDate = New System.Windows.Forms.DataGrid
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.btnCancel = New System.Windows.Forms.Button
        Me.btnDelete = New System.Windows.Forms.Button
        Me.btnUpdate = New System.Windows.Forms.Button
        Me.btnAdd = New System.Windows.Forms.Button
        Me.btnSave = New System.Windows.Forms.Button
        Me.btnExit = New System.Windows.Forms.Button
        Me.Label7 = New System.Windows.Forms.Label
        Me.txtRemark = New System.Windows.Forms.TextBox
        Me.cmbCourse = New System.Windows.Forms.ComboBox
        CType(Me.dgDate, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'Label1
        '
        Me.Label1.Font = New System.Drawing.Font("黑体", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.Label1.Location = New System.Drawing.Point(144, 8)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(160, 24)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "学生成绩信息"
        Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'btnSelect
        '
        Me.btnSelect.Location = New System.Drawing.Point(368, 42)
        Me.btnSelect.Name = "btnSelect"
        Me.btnSelect.Size = New System.Drawing.Size(70, 22)
        Me.btnSelect.TabIndex = 3
        Me.btnSelect.Text = "查找"
        '
        'txtID
        '
        Me.txtID.Location = New System.Drawing.Point(78, 43)
        Me.txtID.Name = "txtID"
        Me.txtID.Size = New System.Drawing.Size(74, 21)
        Me.txtID.TabIndex = 2
        Me.txtID.Text = ""
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(24, 48)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(48, 16)
        Me.Label2.TabIndex = 1
        Me.Label2.Text = "学号:"
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(26, 86)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(48, 16)
        Me.Label3.TabIndex = 4
        Me.Label3.Text = "姓名:"
        '
        'txtName
        '
        Me.txtName.Location = New System.Drawing.Point(78, 81)
        Me.txtName.Name = "txtName"
        Me.txtName.Size = New System.Drawing.Size(74, 21)
        Me.txtName.TabIndex = 5
        Me.txtName.Text = ""
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(164, 86)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(44, 16)
        Me.Label4.TabIndex = 6
        Me.Label4.Text = "课程:"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(306, 86)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(44, 16)
        Me.Label5.TabIndex = 8
        Me.Label5.Text = "分数:"
        '
        'txtScore
        '
        Me.txtScore.Location = New System.Drawing.Point(364, 81)
        Me.txtScore.Name = "txtScore"
        Me.txtScore.Size = New System.Drawing.Size(74, 21)
        Me.txtScore.TabIndex = 9
        Me.txtScore.Text = ""
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(164, 48)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(48, 16)
        Me.Label6.TabIndex = 10
        Me.Label6.Text = "学期:"
        '
        'txtTime
        '
        Me.txtTime.Location = New System.Drawing.Point(216, 43)
        Me.txtTime.Name = "txtTime"
        Me.txtTime.Size = New System.Drawing.Size(124, 21)
        Me.txtTime.TabIndex = 11
        Me.txtTime.Text = ""
        '
        'dgDate
        '
        Me.dgDate.DataMember = ""
        Me.dgDate.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.dgDate.Location = New System.Drawing.Point(26, 154)
        Me.dgDate.Name = "dgDate"
        Me.dgDate.Size = New System.Drawing.Size(330, 248)
        Me.dgDate.TabIndex = 12
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.btnCancel)
        Me.GroupBox1.Controls.Add(Me.btnDelete)
        Me.GroupBox1.Controls.Add(Me.btnUpdate)
        Me.GroupBox1.Controls.Add(Me.btnAdd)
        Me.GroupBox1.Location = New System.Drawing.Point(368, 154)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(82, 168)
        Me.GroupBox1.TabIndex = 13
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "操作"
        '
        'btnCancel
        '
        Me.btnCancel.Location = New System.Drawing.Point(10, 134)
        Me.btnCancel.Name = "btnCancel"
        Me.btnCancel.Size = New System.Drawing.Size(64, 24)
        Me.btnCancel.TabIndex = 3
        Me.btnCancel.Text = "取消"
        '
        'btnDelete
        '
        Me.btnDelete.Location = New System.Drawing.Point(10, 98)
        Me.btnDelete.Name = "btnDelete"
        Me.btnDelete.Size = New System.Drawing.Size(64, 24)
        Me.btnDelete.TabIndex = 2
        Me.btnDelete.Text = "删除"
        '
        'btnUpdate
        '
        Me.btnUpdate.Location = New System.Drawing.Point(9, 62)
        Me.btnUpdate.Name = "btnUpdate"
        Me.btnUpdate.Size = New System.Drawing.Size(64, 24)
        Me.btnUpdate.TabIndex = 1
        Me.btnUpdate.Text = "更改"
        '
        'btnAdd
        '
        Me.btnAdd.Location = New System.Drawing.Point(10, 26)
        Me.btnAdd.Name = "btnAdd"
        Me.btnAdd.Size = New System.Drawing.Size(64, 24)
        Me.btnAdd.TabIndex = 0
        Me.btnAdd.Text = "添加"
        '
        'btnSave
        '
        Me.btnSave.Location = New System.Drawing.Point(376, 336)
        Me.btnSave.Name = "btnSave"
        Me.btnSave.Size = New System.Drawing.Size(64, 24)
        Me.btnSave.TabIndex = 4
        Me.btnSave.Text = "保存"
        '
        'btnExit
        '
        Me.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.btnExit.Location = New System.Drawing.Point(376, 376)
        Me.btnExit.Name = "btnExit"
        Me.btnExit.Size = New System.Drawing.Size(64, 24)
        Me.btnExit.TabIndex = 14
        Me.btnExit.Text = "退出"
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(28, 120)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(48, 16)
        Me.Label7.TabIndex = 15
        Me.Label7.Text = "备注:"
        '
        'txtRemark
        '
        Me.txtRemark.Location = New System.Drawing.Point(76, 118)
        Me.txtRemark.Multiline = True
        Me.txtRemark.Name = "txtRemark"
        Me.txtRemark.Size = New System.Drawing.Size(362, 21)
        Me.txtRemark.TabIndex = 16
        Me.txtRemark.Text = ""
        '
        'cmbCourse
        '
        Me.cmbCourse.Location = New System.Drawing.Point(216, 84)
        Me.cmbCourse.Name = "cmbCourse"
        Me.cmbCourse.Size = New System.Drawing.Size(72, 20)
        Me.cmbCourse.TabIndex = 17

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -