📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form Form3
BorderStyle = 0 'None
Caption = "Form3"
ClientHeight = 8160
ClientLeft = 2460
ClientTop = 1320
ClientWidth = 11040
KeyPreview = -1 'True
LinkTopic = "Form3"
ScaleHeight = 8160
ScaleWidth = 11040
ShowInTaskbar = 0 'False
Begin VB.Timer Timer2
Interval = 1
Left = 480
Top = 0
End
Begin VB.Timer Timer1
Interval = 1
Left = 0
Top = 0
End
Begin VB.Image Image1
Height = 8160
Left = 360
Picture = "Form3.frx":0000
Stretch = -1 'True
Top = 0
Width = 10680
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Image1_Click()
Form1.Timer1.Enabled = False '那么退出程序
Form3.Hide
End Sub
Private Sub Timer1_Timer()
If Image1.Left + Image1.Width > 0 Then '有闹铃当然也要有震动
Image1.Move Image1.Left - 200
Else
Image1.Left = Form1.Width
End If
If Image1.Left < 0 Then Image1.Left = 360
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 27 Then '如果按的键是Esc,
Form1.Timer1.Enabled = False '那么退出程序
Form3.Hide
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -