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

📄 frmstudent.vb

📁 教务管理系统:学生成绩管理
💻 VB
📖 第 1 页 / 共 2 页
字号:


Imports System.IO

Imports System.Data.SqlClient



Public Class FrmStudent
    Inherits System.Windows.Forms.Form


#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 GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    Friend WithEvents BtnExit As System.Windows.Forms.Button
    Friend WithEvents BtnDel As System.Windows.Forms.Button
    Friend WithEvents BtnEdit As System.Windows.Forms.Button
    Friend WithEvents BtnAdd As System.Windows.Forms.Button
    Friend WithEvents BtnOpen As System.Windows.Forms.Button
    Friend WithEvents TxtPerCard As System.Windows.Forms.TextBox
    Friend WithEvents CmbStuSex As System.Windows.Forms.ComboBox
    Friend WithEvents LblStuSex As System.Windows.Forms.Label
    Friend WithEvents TxtStuName As System.Windows.Forms.TextBox
    Friend WithEvents LblStuName As System.Windows.Forms.Label
    Friend WithEvents TxtStuID As System.Windows.Forms.TextBox
    Friend WithEvents LblStuID As System.Windows.Forms.Label
    Friend WithEvents LblStuClass As System.Windows.Forms.Label
    Friend WithEvents CmbStuClass As System.Windows.Forms.ComboBox
    Friend WithEvents LblStuBir As System.Windows.Forms.Label
    Friend WithEvents LblPerCard As System.Windows.Forms.Label
    Friend WithEvents DateStuBir As System.Windows.Forms.DateTimePicker
    Friend WithEvents OpenDlg As System.Windows.Forms.OpenFileDialog
    Friend WithEvents LblPhoto As System.Windows.Forms.Label
    Friend WithEvents LblPhotoPath As System.Windows.Forms.Label
    Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.LblPhotoPath = New System.Windows.Forms.Label
        Me.BtnExit = New System.Windows.Forms.Button
        Me.BtnDel = New System.Windows.Forms.Button
        Me.BtnEdit = New System.Windows.Forms.Button
        Me.BtnAdd = New System.Windows.Forms.Button
        Me.BtnOpen = New System.Windows.Forms.Button
        Me.LblPhoto = New System.Windows.Forms.Label
        Me.TxtPerCard = New System.Windows.Forms.TextBox
        Me.CmbStuSex = New System.Windows.Forms.ComboBox
        Me.LblStuSex = New System.Windows.Forms.Label
        Me.TxtStuName = New System.Windows.Forms.TextBox
        Me.LblStuName = New System.Windows.Forms.Label
        Me.TxtStuID = New System.Windows.Forms.TextBox
        Me.LblStuID = New System.Windows.Forms.Label
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.LblStuClass = New System.Windows.Forms.Label
        Me.CmbStuClass = New System.Windows.Forms.ComboBox
        Me.LblStuBir = New System.Windows.Forms.Label
        Me.LblPerCard = New System.Windows.Forms.Label
        Me.DateStuBir = New System.Windows.Forms.DateTimePicker
        Me.OpenDlg = New System.Windows.Forms.OpenFileDialog
        Me.DataGrid1 = New System.Windows.Forms.DataGrid
        Me.GroupBox1.SuspendLayout()
        CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.LblPhotoPath)
        Me.GroupBox1.Controls.Add(Me.BtnExit)
        Me.GroupBox1.Controls.Add(Me.BtnDel)
        Me.GroupBox1.Controls.Add(Me.BtnEdit)
        Me.GroupBox1.Controls.Add(Me.BtnAdd)
        Me.GroupBox1.Controls.Add(Me.BtnOpen)
        Me.GroupBox1.Controls.Add(Me.LblPhoto)
        Me.GroupBox1.Controls.Add(Me.TxtPerCard)
        Me.GroupBox1.Controls.Add(Me.CmbStuSex)
        Me.GroupBox1.Controls.Add(Me.LblStuSex)
        Me.GroupBox1.Controls.Add(Me.TxtStuName)
        Me.GroupBox1.Controls.Add(Me.LblStuName)
        Me.GroupBox1.Controls.Add(Me.TxtStuID)
        Me.GroupBox1.Controls.Add(Me.LblStuID)
        Me.GroupBox1.Controls.Add(Me.PictureBox1)
        Me.GroupBox1.Controls.Add(Me.LblStuClass)
        Me.GroupBox1.Controls.Add(Me.CmbStuClass)
        Me.GroupBox1.Controls.Add(Me.LblStuBir)
        Me.GroupBox1.Controls.Add(Me.LblPerCard)
        Me.GroupBox1.Controls.Add(Me.DateStuBir)
        Me.GroupBox1.Location = New System.Drawing.Point(8, 0)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(600, 144)
        Me.GroupBox1.TabIndex = 1
        Me.GroupBox1.TabStop = False
        '
        'LblPhotoPath
        '
        Me.LblPhotoPath.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.LblPhotoPath.Location = New System.Drawing.Point(352, 112)
        Me.LblPhotoPath.Name = "LblPhotoPath"
        Me.LblPhotoPath.Size = New System.Drawing.Size(80, 20)
        Me.LblPhotoPath.TabIndex = 25
        '
        'BtnExit
        '
        Me.BtnExit.Location = New System.Drawing.Point(504, 112)
        Me.BtnExit.Name = "BtnExit"
        Me.BtnExit.Size = New System.Drawing.Size(80, 24)
        Me.BtnExit.TabIndex = 24
        Me.BtnExit.Text = "退出"
        '
        'BtnDel
        '
        Me.BtnDel.Location = New System.Drawing.Point(504, 80)
        Me.BtnDel.Name = "BtnDel"
        Me.BtnDel.Size = New System.Drawing.Size(80, 24)
        Me.BtnDel.TabIndex = 23
        Me.BtnDel.Text = "删除纪录"
        '
        'BtnEdit
        '
        Me.BtnEdit.Location = New System.Drawing.Point(504, 48)
        Me.BtnEdit.Name = "BtnEdit"
        Me.BtnEdit.Size = New System.Drawing.Size(80, 24)
        Me.BtnEdit.TabIndex = 22
        Me.BtnEdit.Text = "修改纪录"
        '
        'BtnAdd
        '
        Me.BtnAdd.Location = New System.Drawing.Point(504, 16)
        Me.BtnAdd.Name = "BtnAdd"
        Me.BtnAdd.Size = New System.Drawing.Size(80, 24)
        Me.BtnAdd.TabIndex = 21
        Me.BtnAdd.Text = "添加纪录"
        '
        'BtnOpen
        '
        Me.BtnOpen.Location = New System.Drawing.Point(440, 112)
        Me.BtnOpen.Name = "BtnOpen"
        Me.BtnOpen.Size = New System.Drawing.Size(32, 20)
        Me.BtnOpen.TabIndex = 20
        Me.BtnOpen.Text = "......"
        '
        'LblPhoto
        '
        Me.LblPhoto.Location = New System.Drawing.Point(264, 112)
        Me.LblPhoto.Name = "LblPhoto"
        Me.LblPhoto.Size = New System.Drawing.Size(72, 20)
        Me.LblPhoto.TabIndex = 18
        Me.LblPhoto.Text = "照片路径:"
        Me.LblPhoto.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtPerCard
        '
        Me.TxtPerCard.Location = New System.Drawing.Point(352, 80)
        Me.TxtPerCard.Name = "TxtPerCard"
        Me.TxtPerCard.Size = New System.Drawing.Size(120, 21)
        Me.TxtPerCard.TabIndex = 16
        Me.TxtPerCard.Text = ""
        '
        'CmbStuSex
        '
        Me.CmbStuSex.Location = New System.Drawing.Point(168, 112)
        Me.CmbStuSex.Name = "CmbStuSex"
        Me.CmbStuSex.Size = New System.Drawing.Size(80, 20)
        Me.CmbStuSex.TabIndex = 6
        '
        'LblStuSex
        '
        Me.LblStuSex.Location = New System.Drawing.Point(120, 112)
        Me.LblStuSex.Name = "LblStuSex"
        Me.LblStuSex.Size = New System.Drawing.Size(48, 16)
        Me.LblStuSex.TabIndex = 5
        Me.LblStuSex.Text = "性别:"
        '
        'TxtStuName
        '
        Me.TxtStuName.Location = New System.Drawing.Point(168, 64)
        Me.TxtStuName.Name = "TxtStuName"
        Me.TxtStuName.Size = New System.Drawing.Size(80, 21)
        Me.TxtStuName.TabIndex = 4
        Me.TxtStuName.Text = ""
        '
        'LblStuName
        '
        Me.LblStuName.Location = New System.Drawing.Point(120, 72)
        Me.LblStuName.Name = "LblStuName"
        Me.LblStuName.Size = New System.Drawing.Size(48, 16)
        Me.LblStuName.TabIndex = 3
        Me.LblStuName.Text = "姓名:"
        '
        'TxtStuID
        '
        Me.TxtStuID.Location = New System.Drawing.Point(168, 24)
        Me.TxtStuID.Name = "TxtStuID"
        Me.TxtStuID.Size = New System.Drawing.Size(80, 21)
        Me.TxtStuID.TabIndex = 2
        Me.TxtStuID.Text = ""
        '
        'LblStuID
        '
        Me.LblStuID.Location = New System.Drawing.Point(120, 32)
        Me.LblStuID.Name = "LblStuID"
        Me.LblStuID.Size = New System.Drawing.Size(48, 16)
        Me.LblStuID.TabIndex = 1
        Me.LblStuID.Text = "学号:"
        '
        'PictureBox1
        '
        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.PictureBox1.Location = New System.Drawing.Point(8, 8)
        Me.PictureBox1.Name = "PictureBox1"
        Me.PictureBox1.Size = New System.Drawing.Size(104, 128)
        Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox1.TabIndex = 0
        Me.PictureBox1.TabStop = False
        '
        'LblStuClass
        '
        Me.LblStuClass.Location = New System.Drawing.Point(264, 16)
        Me.LblStuClass.Name = "LblStuClass"
        Me.LblStuClass.Size = New System.Drawing.Size(72, 20)
        Me.LblStuClass.TabIndex = 11
        Me.LblStuClass.Text = "专业:"
        Me.LblStuClass.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'CmbStuClass
        '
        Me.CmbStuClass.Location = New System.Drawing.Point(352, 16)
        Me.CmbStuClass.Name = "CmbStuClass"
        Me.CmbStuClass.Size = New System.Drawing.Size(120, 20)
        Me.CmbStuClass.TabIndex = 12
        '
        'LblStuBir
        '
        Me.LblStuBir.Location = New System.Drawing.Point(264, 48)
        Me.LblStuBir.Name = "LblStuBir"
        Me.LblStuBir.Size = New System.Drawing.Size(72, 20)
        Me.LblStuBir.TabIndex = 13
        Me.LblStuBir.Text = "生日:"
        Me.LblStuBir.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'LblPerCard
        '
        Me.LblPerCard.Location = New System.Drawing.Point(264, 80)
        Me.LblPerCard.Name = "LblPerCard"
        Me.LblPerCard.Size = New System.Drawing.Size(72, 20)
        Me.LblPerCard.TabIndex = 15
        Me.LblPerCard.Text = "身份证号:"
        Me.LblPerCard.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'DateStuBir
        '
        Me.DateStuBir.Location = New System.Drawing.Point(352, 48)
        Me.DateStuBir.Name = "DateStuBir"
        Me.DateStuBir.Size = New System.Drawing.Size(120, 21)
        Me.DateStuBir.TabIndex = 17
        Me.DateStuBir.Value = New Date(1985, 5, 20, 15, 1, 0, 0)
        '
        'DataGrid1
        '
        Me.DataGrid1.DataMember = ""
        Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.DataGrid1.Location = New System.Drawing.Point(8, 152)
        Me.DataGrid1.Name = "DataGrid1"
        Me.DataGrid1.Size = New System.Drawing.Size(600, 344)
        Me.DataGrid1.TabIndex = 2
        '
        'FrmStudent
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(616, 510)
        Me.Controls.Add(Me.DataGrid1)
        Me.Controls.Add(Me.GroupBox1)
        Me.Name = "FrmStudent"
        Me.Text = "学生基本信息管理"
        Me.GroupBox1.ResumeLayout(False)
        CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

⌨️ 快捷键说明

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