form1.frm
来自「上传的包含两个文件」· FRM 代码 · 共 109 行
FRM
109 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5475
ClientLeft = 60
ClientTop = 450
ClientWidth = 7020
LinkTopic = "Form1"
ScaleHeight = 5475
ScaleWidth = 7020
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 500
Left = 1200
Top = 2160
End
Begin VB.VScrollBar VScroll1
Height = 3735
LargeChange = 30
Left = 6000
Max = 1000
SmallChange = 10
TabIndex = 3
Top = 600
Width = 495
End
Begin VB.CommandButton Command3
Caption = "恢复"
Height = 495
Left = 3840
TabIndex = 2
Top = 4320
Width = 975
End
Begin VB.CommandButton Command2
Caption = "暂停"
Height = 495
Left = 2160
TabIndex = 1
Top = 4320
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "放大"
Height = 495
Left = 480
TabIndex = 0
Top = 4320
Width = 1095
End
Begin VB.Label Label2
Caption = "慢"
Height = 495
Left = 6120
TabIndex = 5
Top = 4560
Width = 615
End
Begin VB.Label Label1
Caption = "快"
Height = 255
Left = 6120
TabIndex = 4
Top = 240
Width = 495
End
Begin VB.Image Image1
Height = 855
Left = 240
Picture = "Form1.frx":0000
Stretch = -1 'True
Top = 360
Width = 1095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Command3_Click()
Image1.Width = 1095
Image1.Height = 855
End Sub
Private Sub Form_Load()
'Timer1.Interval = VScroll1.Value / 100
End Sub
Private Sub Timer1_Timer()
Image1.Width = Image1.Width + 300
Image1.Height = Image1.Height + 300
End Sub
Private Sub VScroll1_Change()
Timer1.Interval = VScroll1.Value / 10
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?