form1.frm
来自「Visual Basic程序设计视频教程」· FRM 代码 · 共 74 行
FRM
74 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3180
ClientLeft = 60
ClientTop = 360
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3180
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 100
Left = 1800
Top = 1320
End
Begin VB.Image Image1
Height = 1830
Index = 4
Left = 1680
Picture = "Form1.frx":0000
Top = 840
Visible = 0 'False
Width = 2325
End
Begin VB.Image Image1
Height = 1815
Index = 3
Left = 2040
Picture = "Form1.frx":DF4A
Top = 1200
Visible = 0 'False
Width = 2310
End
Begin VB.Image Image1
Height = 1800
Index = 2
Left = 1440
Picture = "Form1.frx":1BADC
Top = 840
Visible = 0 'False
Width = 2295
End
Begin VB.Image Image1
Height = 1830
Index = 1
Left = 840
Picture = "Form1.frx":292BE
Top = 600
Visible = 0 'False
Width = 2325
End
Begin VB.Image Image1
Height = 1845
Index = 0
Left = 0
Picture = "Form1.frx":37208
Top = 120
Visible = 0 'False
Width = 2325
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Index As Integer ' 此一变量的声明须书写在程序区块之外
Private Sub Timer1_Timer()
Set Form1.Picture = Image1(Index).Picture
Index = Index + 1
If Index > 4 Then Index = 0
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?