📄 frmmodifystinfo.vb
字号:
Imports System.Data
'引入数据库操作类命名空间
Imports System.Data.OleDb
'引入ADO.NET操作命名空间
Public Class FrmModifystInfo
Inherits System.Windows.Forms.Form
Public ADOcmd As OleDbDataAdapter
Public ds As DataSet = New DataSet()
'建立DataSet对象
Public mytable As Data.DataTable
'建立表单对象
Public myrow As Data.DataRow
'建立数据行对象
Public rownumber As Integer
'定义一个整型变量来存放当前行数
Public SearchSQL As String
Public cmd As OleDbCommandBuilder
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写处置以清理组件列表。
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 TxtAddress As System.Windows.Forms.TextBox
Friend WithEvents TxtComment As System.Windows.Forms.TextBox
Friend WithEvents TxtRuDate As System.Windows.Forms.TextBox
Friend WithEvents TxtTel As System.Windows.Forms.TextBox
Friend WithEvents TxtBornDate As System.Windows.Forms.TextBox
Friend WithEvents TxtName As System.Windows.Forms.TextBox
Friend WithEvents TxtSID As System.Windows.Forms.TextBox
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents BtModify As System.Windows.Forms.Button
Friend WithEvents BtUpdate As System.Windows.Forms.Button
Friend WithEvents BtDelete As System.Windows.Forms.Button
Friend WithEvents BtCancel As System.Windows.Forms.Button
Friend WithEvents BtFirst As System.Windows.Forms.Button
Friend WithEvents BtPrev As System.Windows.Forms.Button
Friend WithEvents BtLast As System.Windows.Forms.Button
Friend WithEvents BtNext As System.Windows.Forms.Button
Friend WithEvents TxtClassno As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents ComboSex As System.Windows.Forms.ComboBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.TxtAddress = New System.Windows.Forms.TextBox()
Me.TxtComment = New System.Windows.Forms.TextBox()
Me.TxtRuDate = New System.Windows.Forms.TextBox()
Me.TxtTel = New System.Windows.Forms.TextBox()
Me.TxtBornDate = New System.Windows.Forms.TextBox()
Me.TxtName = New System.Windows.Forms.TextBox()
Me.TxtSID = New System.Windows.Forms.TextBox()
Me.Label8 = New System.Windows.Forms.Label()
Me.Label6 = New System.Windows.Forms.Label()
Me.Label4 = New System.Windows.Forms.Label()
Me.Label1 = New System.Windows.Forms.Label()
Me.Label10 = New System.Windows.Forms.Label()
Me.Label11 = New System.Windows.Forms.Label()
Me.Label12 = New System.Windows.Forms.Label()
Me.Label3 = New System.Windows.Forms.Label()
Me.Label5 = New System.Windows.Forms.Label()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.BtFirst = New System.Windows.Forms.Button()
Me.BtPrev = New System.Windows.Forms.Button()
Me.BtLast = New System.Windows.Forms.Button()
Me.BtNext = New System.Windows.Forms.Button()
Me.GroupBox2 = New System.Windows.Forms.GroupBox()
Me.BtModify = New System.Windows.Forms.Button()
Me.BtUpdate = New System.Windows.Forms.Button()
Me.BtDelete = New System.Windows.Forms.Button()
Me.BtCancel = New System.Windows.Forms.Button()
Me.TxtClassno = New System.Windows.Forms.TextBox()
Me.Label2 = New System.Windows.Forms.Label()
Me.ComboSex = New System.Windows.Forms.ComboBox()
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'TxtAddress
'
Me.TxtAddress.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtAddress.Location = New System.Drawing.Point(321, 142)
Me.TxtAddress.Name = "TxtAddress"
Me.TxtAddress.Size = New System.Drawing.Size(125, 21)
Me.TxtAddress.TabIndex = 38
Me.TxtAddress.Text = ""
'
'TxtComment
'
Me.TxtComment.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtComment.Location = New System.Drawing.Point(95, 168)
Me.TxtComment.Name = "TxtComment"
Me.TxtComment.Size = New System.Drawing.Size(117, 21)
Me.TxtComment.TabIndex = 37
Me.TxtComment.Text = ""
'
'TxtRuDate
'
Me.TxtRuDate.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtRuDate.Location = New System.Drawing.Point(95, 130)
Me.TxtRuDate.Name = "TxtRuDate"
Me.TxtRuDate.Size = New System.Drawing.Size(117, 21)
Me.TxtRuDate.TabIndex = 36
Me.TxtRuDate.Text = ""
'
'TxtTel
'
Me.TxtTel.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtTel.Location = New System.Drawing.Point(321, 100)
Me.TxtTel.Name = "TxtTel"
Me.TxtTel.Size = New System.Drawing.Size(125, 21)
Me.TxtTel.TabIndex = 35
Me.TxtTel.Text = ""
'
'TxtBornDate
'
Me.TxtBornDate.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtBornDate.Location = New System.Drawing.Point(321, 58)
Me.TxtBornDate.Name = "TxtBornDate"
Me.TxtBornDate.Size = New System.Drawing.Size(125, 21)
Me.TxtBornDate.TabIndex = 34
Me.TxtBornDate.Text = ""
'
'TxtName
'
Me.TxtName.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtName.Location = New System.Drawing.Point(321, 16)
Me.TxtName.Name = "TxtName"
Me.TxtName.Size = New System.Drawing.Size(125, 21)
Me.TxtName.TabIndex = 33
Me.TxtName.Text = ""
'
'TxtSID
'
Me.TxtSID.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtSID.Location = New System.Drawing.Point(95, 16)
Me.TxtSID.Name = "TxtSID"
Me.TxtSID.Size = New System.Drawing.Size(117, 21)
Me.TxtSID.TabIndex = 32
Me.TxtSID.Text = ""
'
'Label8
'
Me.Label8.AutoSize = True
Me.Label8.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label8.Location = New System.Drawing.Point(248, 60)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(63, 16)
Me.Label8.TabIndex = 30
Me.Label8.Text = "出生日期"
'
'Label6
'
Me.Label6.AutoSize = True
Me.Label6.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label6.Location = New System.Drawing.Point(248, 16)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(34, 16)
Me.Label6.TabIndex = 28
Me.Label6.Text = "姓名"
'
'Label4
'
Me.Label4.AutoSize = True
Me.Label4.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label4.Location = New System.Drawing.Point(15, 128)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(63, 16)
Me.Label4.TabIndex = 26
Me.Label4.Text = "入校时间"
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(42, -17)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(29, 13)
Me.Label1.TabIndex = 23
Me.Label1.Text = "学号"
'
'Label10
'
Me.Label10.AutoSize = True
Me.Label10.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label10.Location = New System.Drawing.Point(15, 168)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(34, 16)
Me.Label10.TabIndex = 27
Me.Label10.Text = "备注"
'
'Label11
'
Me.Label11.AutoSize = True
Me.Label11.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label11.Location = New System.Drawing.Point(15, 48)
Me.Label11.Name = "Label11"
Me.Label11.Size = New System.Drawing.Size(34, 16)
Me.Label11.TabIndex = 24
Me.Label11.Text = "性别"
'
'Label12
'
Me.Label12.AutoSize = True
Me.Label12.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label12.Location = New System.Drawing.Point(15, 88)
Me.Label12.Name = "Label12"
Me.Label12.Size = New System.Drawing.Size(34, 16)
Me.Label12.TabIndex = 25
Me.Label12.Text = "班级"
'
'Label3
'
Me.Label3.AutoSize = True
Me.Label3.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label3.Location = New System.Drawing.Point(248, 104)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(63, 16)
Me.Label3.TabIndex = 29
Me.Label3.Text = "联系电话"
'
'Label5
'
Me.Label5.AutoSize = True
Me.Label5.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label5.Location = New System.Drawing.Point(248, 148)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(63, 16)
Me.Label5.TabIndex = 31
Me.Label5.Text = "家庭住址"
Me.Label5.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'GroupBox1
'
Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.BtFirst, Me.BtPrev, Me.BtLast, Me.BtNext})
Me.GroupBox1.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.GroupBox1.Location = New System.Drawing.Point(7, 208)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(449, 56)
Me.GroupBox1.TabIndex = 43
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "查看学籍信息"
'
'BtFirst
'
Me.BtFirst.Location = New System.Drawing.Point(15, 16)
Me.BtFirst.Name = "BtFirst"
Me.BtFirst.Size = New System.Drawing.Size(95, 32)
Me.BtFirst.TabIndex = 46
Me.BtFirst.Text = "第一条记录"
'
'BtPrev
'
Me.BtPrev.Location = New System.Drawing.Point(124, 16)
Me.BtPrev.Name = "BtPrev"
Me.BtPrev.Size = New System.Drawing.Size(95, 32)
Me.BtPrev.TabIndex = 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -