📄 form1.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form1
ClientHeight = 3690
ClientLeft = 60
ClientTop = 345
ClientWidth = 5685
LinkTopic = "Form1"
ScaleHeight = 3690
ScaleWidth = 5685
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 855
Left = 2160
TabIndex = 5
Top = 840
Width = 1815
Begin VB.TextBox Text1
Height = 270
Left = 960
TabIndex = 7
Top = 360
Width = 735
End
Begin VB.CheckBox Check1
Caption = "次数"
Height = 255
Left = 120
TabIndex = 6
Top = 360
Width = 735
End
End
Begin MSComCtl2.Animation Animation1
Height = 375
Left = 1440
TabIndex = 4
Top = 2880
Width = 1095
_ExtentX = 1931
_ExtentY = 661
_Version = 393216
FullWidth = 73
FullHeight = 25
End
Begin VB.CommandButton Command4
Caption = "关闭"
Enabled = 0 'False
Height = 375
Left = 600
TabIndex = 3
Top = 2280
Width = 855
End
Begin VB.CommandButton Command3
Caption = "停止"
Enabled = 0 'False
Height = 375
Left = 600
TabIndex = 2
Top = 1680
Width = 855
End
Begin VB.CommandButton Command2
Caption = "播放"
Enabled = 0 'False
Height = 375
Left = 600
TabIndex = 1
Top = 1080
Width = 855
End
Begin VB.CommandButton Command1
Caption = "打开"
Height = 375
Left = 600
TabIndex = 0
Top = 360
Width = 855
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:Check1_Click
'## 参数: 无
'##################################################################
Private Sub Check1_Click()
Text1.Enabled = Not Text1.Enabled
End Sub
'##################################################################
'## 过程名称:Command1_Click
'## 参数: 无
'##################################################################
Private Sub Command1_Click()
Animation1.Open (App.Path + "\FILECOPY.AVI")
Command1.Enabled = False
Command2.Enabled = True
Command3.Enabled = True
Command4.Enabled = True
Text1.Enabled = False
End Sub
'##################################################################
'## 过程名称:Command2_Click
'## 参数: 无
'##################################################################
Private Sub Command2_Click()
If Check1 Then
Animation1.Play Val(Text1)
Else
Animation1.Play
End If
Command3.Enabled = True
End Sub
'##################################################################
'## 过程名称:Command3_Click
'## 参数: 无
'##################################################################
Private Sub Command3_Click()
Animation1.Stop
End Sub
'##################################################################
'## 过程名称:Command4_Click
'## 参数: 无
'##################################################################
Private Sub Command4_Click()
Animation1.Close
Command1.Enabled = True
Command2.Enabled = False
Command3.Enabled = False
Command4.Enabled = False
End Sub
'##################################################################
'## 过程名称:Form_Load
'## 参数: 无
'##################################################################
Private Sub Form_Load()
Command2.Enabled = False
Command3.Enabled = False
Command4.Enabled = False
Text1.Enabled = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -