📄 frmexit.frm
字号:
VERSION 5.00
Begin VB.Form frmExit
BorderStyle = 3 'Fixed Dialog
Caption = "系统退出"
ClientHeight = 2820
ClientLeft = 5730
ClientTop = 5430
ClientWidth = 3510
ClipControls = 0 'False
ControlBox = 0 'False
FillStyle = 0 'Solid
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
NegotiateMenus = 0 'False
ScaleHeight = 2820
ScaleWidth = 3510
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 500
Left = 1440
Top = 2400
End
Begin VB.Timer Timer1
Interval = 500
Left = 120
Top = 2640
End
Begin VB.CommandButton CancelButton
Caption = "取消关闭"
Height = 495
Left = 1920
TabIndex = 1
Top = 2280
Width = 1455
End
Begin VB.CommandButton OKButton
Caption = "关闭程序"
Height = 495
Left = 120
TabIndex = 0
Top = 2280
Width = 1455
End
Begin VB.Label lbTemp
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Caption = "最高温度:0.0℃"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 4
Top = 1800
Width = 3255
End
Begin VB.Label lbShow
BorderStyle = 1 'Fixed Single
Caption = " 回流炉正在降温,下降到安全温度后会自动关闭程序..."
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 120
TabIndex = 3
Top = 600
Width = 3255
End
Begin VB.Label lbTime
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Caption = "00:00"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 2
Top = 120
Width = 3255
End
End
Attribute VB_Name = "frmExit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim iSecond As Long
Private Sub CancelButton_Click()
frmMain.Enabled = True
Timer1.Enabled = False
iSecond = 0
Me.Hide
End Sub
Private Sub Form_Activate()
SetDlgBackColor Me
End Sub
Private Sub Form_Load()
Dim i As Long
i = SetParent(Me.hwnd, frmMain.hwnd)
iSecond = 0
bTimeEnd = True
End Sub
Private Sub OKButton_Click()
bTimeEnd = True
Timer2.Enabled = True
End Sub
Private Sub Timer1_Timer()
Static b As Boolean
Static s As Boolean
Dim Temp As Single
Dim i As Long, j As Long
b = Not b
If Not s Then
If Not Ack Then
Exit Sub
End If
Timer1.Enabled = False
If frmMain.OnOff(2, False) Then
s = True
End If
TimeDelay 50
If Not frmMain.OnOff(1, False) Then
s = False
End If
Timer1.Enabled = True
If s Then
bTimeEnd = False
End If
End If
If Not b Then
Temp = 0#
With frmMain
For i = 0 To iCurrentOption + 4
If Temp < Val(.lbUT(i).Caption) Then
Temp = Val(.lbUT(i).Caption)
End If
If Temp < Val(.lbDT(i).Caption) Then
Temp = Val(.lbDT(i).Caption)
End If
Next
End With
lbTemp.Caption = "最高温度:" & Format(Temp, "0.0") & "℃"
iSecond = iSecond + 1
lbTime.Caption = Format(iSecond \ 60, "00") & ":" & Format(iSecond Mod 60, "00")
If Temp < SafeTemp And Temp > 0 Then
End
End If
'Else
'
End If
End Sub
Private Sub Timer2_Timer()
Dim i As Long
Me.Hide
frmMain.Enabled = True
i = 0
While Not frmMain.OnOff(1, False)
i = i + 1
If i > 3 Then
GoTo OutL:
End If
Wend
OutL:
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -