📄 form2.vb
字号:
Public Class Form2
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 Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents AxMSComm1 As AxMSCommLib.AxMSComm
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
Friend WithEvents Timer1 As System.Timers.Timer
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Timer2 As System.Timers.Timer
Friend WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
Friend WithEvents DataSet31 As 学生考勤管理系统.DataSet3
Friend WithEvents SqlCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
Friend WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlInsertCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form2))
Me.Button1 = New System.Windows.Forms.Button
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.AxMSComm1 = New AxMSCommLib.AxMSComm
Me.TextBox3 = New System.Windows.Forms.TextBox
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.TextBox5 = New System.Windows.Forms.TextBox
Me.Button3 = New System.Windows.Forms.Button
Me.TextBox4 = New System.Windows.Forms.TextBox
Me.Timer1 = New System.Timers.Timer
Me.GroupBox3 = New System.Windows.Forms.GroupBox
Me.Label3 = New System.Windows.Forms.Label
Me.Timer2 = New System.Timers.Timer
Me.SqlDataAdapter1 = New System.Data.SqlClient.SqlDataAdapter
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.DataSet31 = New 学生考勤管理系统.DataSet3
Me.SqlCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlSelectCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlInsertCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
CType(Me.AxMSComm1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox2.SuspendLayout()
CType(Me.Timer1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox3.SuspendLayout()
CType(Me.Timer2, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.DataSet31, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Button1
'
Me.Button1.ForeColor = System.Drawing.Color.Gold
Me.Button1.Location = New System.Drawing.Point(504, 264)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(72, 32)
Me.Button1.TabIndex = 1
Me.Button1.Text = "退出"
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(80, 8)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(104, 21)
Me.TextBox1.TabIndex = 4
Me.TextBox1.Text = ""
'
'Label1
'
Me.Label1.ForeColor = System.Drawing.Color.DarkSalmon
Me.Label1.Location = New System.Drawing.Point(8, 16)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(72, 16)
Me.Label1.TabIndex = 5
Me.Label1.Text = "考勤日期:"
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(80, 40)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(104, 21)
Me.TextBox2.TabIndex = 6
Me.TextBox2.Text = ""
'
'Label2
'
Me.Label2.ForeColor = System.Drawing.Color.DarkSalmon
Me.Label2.Location = New System.Drawing.Point(24, 40)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(48, 16)
Me.Label2.TabIndex = 7
Me.Label2.Text = "时间:"
'
'GroupBox1
'
Me.GroupBox1.Location = New System.Drawing.Point(8, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(200, 64)
Me.GroupBox1.TabIndex = 8
Me.GroupBox1.TabStop = False
'
'AxMSComm1
'
Me.AxMSComm1.Enabled = True
Me.AxMSComm1.Location = New System.Drawing.Point(504, 16)
Me.AxMSComm1.Name = "AxMSComm1"
Me.AxMSComm1.OcxState = CType(resources.GetObject("AxMSComm1.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxMSComm1.Size = New System.Drawing.Size(38, 38)
Me.AxMSComm1.TabIndex = 9
'
'TextBox3
'
Me.TextBox3.Location = New System.Drawing.Point(72, 264)
Me.TextBox3.Name = "TextBox3"
Me.TextBox3.Size = New System.Drawing.Size(88, 21)
Me.TextBox3.TabIndex = 12
Me.TextBox3.Text = ""
Me.TextBox3.Visible = False
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.TextBox5)
Me.GroupBox2.ForeColor = System.Drawing.Color.DarkSalmon
Me.GroupBox2.Location = New System.Drawing.Point(224, 16)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(120, 48)
Me.GroupBox2.TabIndex = 13
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "卡号"
'
'TextBox5
'
Me.TextBox5.Location = New System.Drawing.Point(16, 16)
Me.TextBox5.Name = "TextBox5"
Me.TextBox5.Size = New System.Drawing.Size(88, 21)
Me.TextBox5.TabIndex = 21
Me.TextBox5.Text = ""
'
'Button3
'
Me.Button3.ForeColor = System.Drawing.Color.DarkSalmon
Me.Button3.Location = New System.Drawing.Point(24, 0)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(56, 24)
Me.Button3.TabIndex = 14
Me.Button3.Text = "机号:"
'
'TextBox4
'
Me.TextBox4.Location = New System.Drawing.Point(384, 40)
Me.TextBox4.Name = "TextBox4"
Me.TextBox4.Size = New System.Drawing.Size(56, 21)
Me.TextBox4.TabIndex = 15
Me.TextBox4.Text = ""
'
'Timer1
'
Me.Timer1.Enabled = True
Me.Timer1.Interval = 1000
Me.Timer1.SynchronizingObject = Me.TextBox2
'
'GroupBox3
'
Me.GroupBox3.Controls.Add(Me.Button3)
Me.GroupBox3.Location = New System.Drawing.Point(360, 8)
Me.GroupBox3.Name = "GroupBox3"
Me.GroupBox3.Size = New System.Drawing.Size(112, 64)
Me.GroupBox3.TabIndex = 16
Me.GroupBox3.TabStop = False
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label3.ForeColor = System.Drawing.Color.Red
Me.Label3.Location = New System.Drawing.Point(560, 8)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(32, 56)
Me.Label3.TabIndex = 17
Me.Label3.Text = "请刷卡"
'
'Timer2
'
Me.Timer2.Enabled = True
Me.Timer2.Interval = 1500
Me.Timer2.SynchronizingObject = Me
'
'SqlDataAdapter1
'
Me.SqlDataAdapter1.InsertCommand = Me.SqlInsertCommand1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -