📄 frmlogon.frm
字号:
VERSION 5.00
Begin VB.Form FrmLogon
BackColor = &H00808080&
BorderStyle = 0 'None
Caption = "考生验证"
ClientHeight = 2955
ClientLeft = 0
ClientTop = 0
ClientWidth = 4425
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
MouseIcon = "FrmLogon.frx":0000
MousePointer = 99 'Custom
ScaleHeight = 2955
ScaleWidth = 4425
StartUpPosition = 1 '所有者中心
Begin VB.TextBox Text2
Height = 375
Left = 1350
TabIndex = 0
Top = 765
Width = 1935
End
Begin VB.Timer Timer1
Interval = 300
Left = 270
Top = 2160
End
Begin VB.CommandButton Command1
Caption = "进入考试"
Default = -1 'True
Height = 375
Left = 1530
TabIndex = 3
Top = 2295
Width = 1455
End
Begin VB.TextBox Text1
Height = 375
Left = 1350
TabIndex = 2
Top = 1485
Width = 1935
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "(请询问监考老师)"
ForeColor = &H000000FF&
Height = 375
Index = 1
Left = 1395
TabIndex = 8
Top = 1170
Width = 1995
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "服务器:"
ForeColor = &H0000FFFF&
Height = 180
Index = 1
Left = 450
TabIndex = 7
Top = 855
Width = 630
End
Begin VB.Label Label5
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Left = 2160
TabIndex = 6
Top = 1980
Width = 105
End
Begin VB.Label Label4
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "×"
ForeColor = &H0080C0FF&
Height = 195
Left = 4155
MouseIcon = "FrmLogon.frx":0152
TabIndex = 5
Top = 75
Width = 195
End
Begin VB.Shape Shape2
BorderColor = &H00008080&
FillColor = &H0080C0FF&
Height = 240
Left = 4095
Top = 45
Width = 285
End
Begin VB.Label Label3
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "考生验证"
Height = 240
Left = 810
TabIndex = 4
Top = 90
Width = 2715
End
Begin VB.Line Line3
BorderColor = &H0000FFFF&
X1 = 4410
X2 = 4410
Y1 = 180
Y2 = 2925
End
Begin VB.Line Line2
BorderColor = &H0000FFFF&
X1 = 45
X2 = 4455
Y1 = 2925
Y2 = 2925
End
Begin VB.Line Line1
BorderColor = &H0000FFFF&
X1 = 0
X2 = 0
Y1 = 225
Y2 = 2925
End
Begin VB.Shape Shape1
BorderColor = &H0000FFFF&
FillColor = &H0080FFFF&
FillStyle = 0 'Solid
Height = 330
Left = 0
Top = 0
Width = 4425
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "准考证号:"
ForeColor = &H0000FFFF&
Height = 180
Index = 0
Left = 405
TabIndex = 1
Top = 1530
Width = 810
End
End
Attribute VB_Name = "FrmLogon"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text2.Text = Empty Then
Label5.Caption = "请输入服务器"
Text2.SetFocus
ElseIf Text1.Text = Empty Then
Label5.Caption = "请输入准考证"
Text1.SetFocus
Else
TryHost = 0
Label5.ForeColor = vbRed
Timer1.Enabled = True
Command1.Enabled = False
Label5.Caption = "正在连接服务器"
ServerIP = Text2.Text
Call ConnectServer '连接服务器
Text1.Enabled = False
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label4.ForeColor = &H80C0FF
Shape2.BorderColor = &H80C0FF
Label4.MousePointer = 0
End Sub
Private Sub Label4_Click()
FrmMain.Enabled = True
Me.Hide
End Sub
Private Sub Label4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label4.ForeColor = vbRed
Shape2.BorderColor = vbRed
Label4.MousePointer = 99
End Sub
Private Sub Timer1_Timer()
If Label5.ForeColor = vbRed Then
Label5.ForeColor = vbBlue
ElseIf Label5.ForeColor = vbBlue Then
Label5.ForeColor = vbYellow
ElseIf Label5.ForeColor = vbYellow Then
Label5.ForeColor = vbRed
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -