form1.frm
来自「Visual Basic程序设计视频教程」· FRM 代码 · 共 79 行
FRM
79 行
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "Form1"
ClientHeight = 2910
ClientLeft = 60
ClientTop = 360
ClientWidth = 3045
FillColor = &H00FFFFFF&
LinkTopic = "Form1"
ScaleHeight = 2910
ScaleWidth = 3045
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 375
Left = 960
TabIndex = 0
Top = 2280
Width = 855
End
Begin VB.Image Image1
Height = 1830
Index = 4
Left = 2400
Picture = "Form1.frx":0000
Top = 1680
Visible = 0 'False
Width = 2325
End
Begin VB.Image Image1
Height = 1815
Index = 3
Left = 1680
Picture = "Form1.frx":DF4A
Top = 1440
Visible = 0 'False
Width = 2310
End
Begin VB.Image Image1
Height = 1800
Index = 2
Left = 1200
Picture = "Form1.frx":1BADC
Top = 1320
Visible = 0 'False
Width = 2295
End
Begin VB.Image Image1
Height = 1830
Index = 0
Left = 960
Picture = "Form1.frx":292BE
Top = 960
Visible = 0 'False
Width = 2325
End
Begin VB.Image Image1
Height = 1845
Index = 1
Left = 480
Picture = "Form1.frx":37208
Top = 480
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 Command1_Click()
Set Form1.Picture = Image1(Index).Picture
Index = Index + 1
If Index > 4 Then Index = 0
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?