📄 animation.frm
字号:
VERSION 5.00
Object = "{FE0065C0-1B7B-11CF-9D53-00AA003C9CB6}#1.1#0"; "COMCT232.OCX"
Begin VB.Form Form1
BackColor = &H80000001&
Caption = "Animation"
ClientHeight = 2040
ClientLeft = 60
ClientTop = 345
ClientWidth = 5760
LinkTopic = "Form1"
ScaleHeight = 2040
ScaleWidth = 5760
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
BackColor = &H80000001&
Caption = "删除文件动画"
ForeColor = &H0000FFFF&
Height = 1215
Left = 120
TabIndex = 2
Top = 120
Width = 5415
Begin ComCtl2.Animation Animation1
Height = 855
Left = 240
TabIndex = 3
Top = 240
Width = 4935
_ExtentX = 8705
_ExtentY = 1508
_Version = 327681
Center = -1 'True
BackColor = -2147483647
FullWidth = 329
FullHeight = 57
End
End
Begin VB.CommandButton Command2
BackColor = &H00FFFF80&
Caption = "退 出"
Height = 375
Left = 4320
Style = 1 'Graphical
TabIndex = 1
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
BackColor = &H00FFFF80&
Caption = "播放"
Height = 375
Left = 2880
Style = 1 'Graphical
TabIndex = 0
Top = 1560
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' 设置Animation控件的属性
Private Sub Form_Load()
Animation1.AutoPlay = False
End Sub
Private Sub Command1_Click()
If Command1.Caption = "播放" Then
' 加载动画文件并播放
With Animation1
.Open App.Path & "\filedel.avi"
.Play
End With
Command1.Caption = "停止"
Else
' 停止播放
With Animation1
.Stop
End With
Command1.Caption = "播放"
End If
End Sub
' 退出
Private Sub Command2_Click()
Animation1.Close
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -