📄 form1.vb
字号:
Public Class Form1
Inherits System.Windows.Forms.Form
Sub disp()
If Not (rs.BOF Or rs.EOF) Then
TextBox1.Text = rs.Fields("学号").Value
TextBox2.Text = rs.Fields("姓名").Value
TextBox3.Text = rs.Fields("出生日期").Value
TextBox4.Text = rs.Fields("班号").Value
TextBox5.Text = rs.Fields("联系电话").Value
TextBox6.Text = rs.Fields("入校日期").Value
TextBox7.Text = rs.Fields("家庭住址").Value
TextBox8.Text = rs.Fields("备注").Value
If rs.Fields("性别").Value = "男" Then
r1.Checked = True
Else
r2.Checked = True
End If
End If
End Sub
#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 Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
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 Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
Friend WithEvents TextBox6 As System.Windows.Forms.TextBox
Friend WithEvents TextBox7 As System.Windows.Forms.TextBox
Friend WithEvents TextBox8 As System.Windows.Forms.TextBox
Friend WithEvents r1 As System.Windows.Forms.RadioButton
Friend WithEvents r2 As System.Windows.Forms.RadioButton
Friend WithEvents Button7 As System.Windows.Forms.Button
Friend WithEvents Button8 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Button1 = New System.Windows.Forms.Button()
Me.Button2 = New System.Windows.Forms.Button()
Me.Button3 = New System.Windows.Forms.Button()
Me.Button4 = New System.Windows.Forms.Button()
Me.Button5 = New System.Windows.Forms.Button()
Me.Label1 = New System.Windows.Forms.Label()
Me.Label2 = New System.Windows.Forms.Label()
Me.Label3 = New System.Windows.Forms.Label()
Me.Label4 = New System.Windows.Forms.Label()
Me.Label5 = New System.Windows.Forms.Label()
Me.Label6 = New System.Windows.Forms.Label()
Me.Label7 = New System.Windows.Forms.Label()
Me.Label8 = New System.Windows.Forms.Label()
Me.Label9 = New System.Windows.Forms.Label()
Me.TextBox1 = New System.Windows.Forms.TextBox()
Me.TextBox2 = New System.Windows.Forms.TextBox()
Me.r1 = New System.Windows.Forms.RadioButton()
Me.r2 = New System.Windows.Forms.RadioButton()
Me.TextBox3 = New System.Windows.Forms.TextBox()
Me.TextBox4 = New System.Windows.Forms.TextBox()
Me.TextBox5 = New System.Windows.Forms.TextBox()
Me.TextBox6 = New System.Windows.Forms.TextBox()
Me.TextBox7 = New System.Windows.Forms.TextBox()
Me.TextBox8 = New System.Windows.Forms.TextBox()
Me.Button7 = New System.Windows.Forms.Button()
Me.Button8 = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(328, 40)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(64, 32)
Me.Button1.TabIndex = 0
Me.Button1.Text = "浏览"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(408, 40)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(64, 32)
Me.Button2.TabIndex = 1
Me.Button2.Text = "删除"
'
'Button3
'
Me.Button3.Location = New System.Drawing.Point(328, 80)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(64, 32)
Me.Button3.TabIndex = 2
Me.Button3.Text = "下一个"
'
'Button4
'
Me.Button4.Location = New System.Drawing.Point(408, 80)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(64, 32)
Me.Button4.TabIndex = 3
Me.Button4.Text = "插入"
'
'Button5
'
Me.Button5.Location = New System.Drawing.Point(328, 128)
Me.Button5.Name = "Button5"
Me.Button5.Size = New System.Drawing.Size(64, 32)
Me.Button5.TabIndex = 4
Me.Button5.Text = "上一个"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(72, 24)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(48, 24)
Me.Label1.TabIndex = 6
Me.Label1.Text = "学号"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(72, 56)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(48, 24)
Me.Label2.TabIndex = 7
Me.Label2.Text = "姓名"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(72, 88)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(48, 24)
Me.Label3.TabIndex = 8
Me.Label3.Text = "性别"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(72, 120)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(72, 24)
Me.Label4.TabIndex = 9
Me.Label4.Text = "出生日期"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(72, 152)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(48, 24)
Me.Label5.TabIndex = 10
Me.Label5.Text = "班号"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(72, 208)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(72, 24)
Me.Label6.TabIndex = 11
Me.Label6.Text = "入校日期"
'
'Label7
'
Me.Label7.Location = New System.Drawing.Point(72, 184)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(72, 24)
Me.Label7.TabIndex = 12
Me.Label7.Text = "联系电话"
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(72, 240)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(72, 24)
Me.Label8.TabIndex = 13
Me.Label8.Text = "家庭住址"
'
'Label9
'
Me.Label9.Location = New System.Drawing.Point(72, 272)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(48, 24)
Me.Label9.TabIndex = 14
Me.Label9.Text = "备注"
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(152, 24)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(136, 25)
Me.TextBox1.TabIndex = 15
Me.TextBox1.Text = "TextBox1"
'
'TextBox2
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -