📄 form1.frm
字号:
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "播放gif 动画"
ClientHeight = 2550
ClientLeft = 60
ClientTop = 345
ClientWidth = 3900
LinkTopic = "Form1"
ScaleHeight = 2550
ScaleWidth = 3900
StartUpPosition = 1 '所有者中心
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 1905
Left = 705
ScaleHeight = 1875
ScaleWidth = 2340
TabIndex = 3
Top = 60
Width = 2370
Begin SHDocVwCtl.WebBrowser WebBrowser1
Height = 1950
Left = -30
TabIndex = 4
TabStop = 0 'False
Top = -15
Width = 2700
ExtentX = 4762
ExtentY = 3440
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 0
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = ""
End
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 420
Left = 2535
TabIndex = 2
Top = 2040
Width = 1005
End
Begin VB.CommandButton Command2
Caption = "动画静止"
Height = 420
Left = 1530
TabIndex = 1
Top = 2040
Width = 1005
End
Begin VB.CommandButton Command1
Caption = "动画播放"
Height = 420
Left = 525
TabIndex = 0
Top = 2040
Width = 1005
End
Begin VB.Image Image1
Height = 795
Left = 1185
Top = 480
Visible = 0 'False
Width = 855
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Image1.Picture = LoadPicture(App.Path & "\13.gif")
WebBrowser1.Navigate (App.Path & "\13.gif") '播放gif动画
End Sub
Private Sub Command1_Click()
Command1.Enabled = False
Command2.Enabled = True
Picture1.Visible = True
Image1.Visible = False
End Sub
Private Sub Command2_Click()
Command2.Enabled = False
Command1.Enabled = True
Picture1.Visible = False
Image1.Visible = True
End Sub
Private Sub Command3_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -