📄 提示.frm
字号:
VERSION 5.00
Begin VB.Form 提示
BackColor = &H00FFFFFF&
BorderStyle = 3 'Fixed Dialog
ClientHeight = 1230
ClientLeft = 45
ClientTop = 45
ClientWidth = 4980
ControlBox = 0 'False
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1230
ScaleWidth = 4980
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
Height = 285
Left = 23
TabIndex = 3
Top = 690
Width = 4935
End
Begin VB.TextBox tsc
Alignment = 2 'Center
BorderStyle = 0 'None
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 315
Left = 23
MultiLine = -1 'True
TabIndex = 1
Top = 360
Width = 4935
End
Begin VB.Timer Timer1
Interval = 1000
Left = 30
Top = 780
End
Begin VB.Label 取消
Alignment = 2 'Center
BackColor = &H00FFFFFF&
Caption = "关闭"
Height = 225
Left = 1530
TabIndex = 2
Top = 990
Width = 1605
End
Begin VB.Label Label1
Alignment = 2 'Center
BackColor = &H00FFFFFF&
Caption = "定时器提醒您:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 195
Left = 15
TabIndex = 0
Top = 30
Width = 4635
End
End
Attribute VB_Name = "提示"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public jsq As Integer
Public djs As String
Public jlh As Integer
Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
SetFormTopmost Me
jsq = 14
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
If jsq > 0 Then
djs = "还有" & jsq & "秒就执行" & 主窗体.yy
jsq = jsq - 1
tsc.Text = 主窗体.xx
Text1.Text = djs
Else
Unload Me
End If
End Sub
Private Sub 取消_Click()
If 取消.Caption = "关闭" Then
Unload Me
Else
主窗体.yjkg = True
jlh = jlh - 1
写入创建 "Time", CStr(jlh), vbNullString, 主窗体.MyName
Unload Me
主窗体.yjkg = True
End If
End Sub
Private Sub 取消_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
取消.BorderStyle = 1
End Sub
Private Sub 取消_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
取消.BorderStyle = 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -