📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "显示图片"
ClientHeight = 4680
ClientLeft = 60
ClientTop = 450
ClientWidth = 6165
LinkTopic = "Form1"
ScaleHeight = 312
ScaleMode = 3 'Pixel
ScaleWidth = 411
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "消失"
Height = 495
Left = 1560
TabIndex = 3
Top = 3360
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "显示"
Height = 495
Left = 120
TabIndex = 2
Top = 3360
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "缩小"
Height = 495
Left = 1560
TabIndex = 1
Top = 2640
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "放大"
Height = 495
Left = 120
TabIndex = 0
Top = 2640
Width = 1215
End
Begin VB.Image Image1
Height = 900
Left = 120
Picture = "Form1.frx":0000
Stretch = -1 'True
Top = 120
Width = 2400
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()
'图片放大1.5倍。
Image1.Width = Image1.Width * 1.5
Image1.Height = Image1.Height * 1.5
End Sub
Private Sub Command2_Click()
'图片缩小1.5倍。
Image1.Width = Image1.Width / 1.5
Image1.Height = Image1.Height / 1.5
End Sub
Private Sub Command3_Click()
'图片可见。
Image1.Visible = True
End Sub
Private Sub Command4_Click()
'图片隐藏。
Image1.Visible = flase
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -