📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BackColor = &H00404080&
BorderStyle = 0 'None
Caption = "&H000080FF&"
ClientHeight = 360
ClientLeft = 3675
ClientTop = 2130
ClientWidth = 9630
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 360
ScaleWidth = 9630
ShowInTaskbar = 0 'False
Begin VB.Timer Timer1
Interval = 1000
Left = 2400
Top = 0
End
Begin VB.Image Image3
Height = 360
Left = 0
Picture = "Form2.frx":0000
Stretch = -1 'True
Top = 0
Width = 345
End
Begin VB.Image Image2
Height = 360
Left = 6840
Picture = "Form2.frx":030A
Stretch = -1 'True
Top = 0
Width = 345
End
Begin VB.Image Image1
Height = 360
Left = 8400
Picture = "Form2.frx":058C
Stretch = -1 'True
Top = 0
Width = 345
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "显示窗口"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 300
Left = 480
TabIndex = 3
Top = 0
Width = 1200
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "姓名: 准考证号:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 240
Left = 1920
TabIndex = 2
Top = 60
Width = 2520
End
Begin VB.Label Labtime
BackStyle = 0 'Transparent
Caption = "90:00"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 300
Left = 7320
TabIndex = 1
Top = 0
Width = 750
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 300
Left = 8880
TabIndex = 0
Top = 0
Width = 600
End
Begin VB.Line Line3
BorderColor = &H00FFFFFF&
X1 = 8280
X2 = 8280
Y1 = 0
Y2 = 360
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 6720
X2 = 6720
Y1 = 0
Y2 = 360
End
Begin VB.Line Line1
BorderColor = &H00FFFFFF&
X1 = 1800
X2 = 1800
Y1 = 0
Y2 = 360
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim n As Integer
Private Sub Form_Load()
Me.Top = 0
Me.Left = Screen.Width / 2 - Me.Width / 2
n = 60 * 90
End Sub
Private Sub Form_Unload(Cancel As Integer)
If MsgBox("你真的要退出考试吗?", 4 + 32, "国家信息化考试") = vbYes Then
End
Else
Cancel = 1
End If
End Sub
Private Sub Label1_Click()
Unload Me
End Sub
Private Sub Label4_Click()
Static i As Integer
i = Not i
If i Then Form1.Hide: Label4.Caption = "隐藏窗口" Else Form1.Show: Label4.Caption = "显示窗口"
End Sub
Private Sub Timer1_Timer()
Dim a As Integer
Dim b As Integer
n = n - 1
a = n \ 60
b = n Mod 60
Labtime.Caption = Format(a, "00") & ":" & Format(b, "00")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -