📄 pictureview.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 11085
ClientLeft = 60
ClientTop = 375
ClientWidth = 15240
LinkTopic = "Form1"
ScaleHeight = 11085
ScaleWidth = 15240
StartUpPosition = 3 '窗口缺省
Begin VB.FileListBox File1
Height = 2970
Left = 0
TabIndex = 3
Top = 3030
Width = 1995
End
Begin VB.DirListBox Dir1
Height = 2400
Left = 0
TabIndex = 2
Top = 480
Width = 1995
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 30
TabIndex = 1
Top = 90
Width = 1995
End
Begin VB.PictureBox Picture1
Height = 11055
Left = 1710
ScaleHeight = 10995
ScaleWidth = 15075
TabIndex = 0
Top = 30
Width = 15135
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
On Error Resume Next
'On Error GoTo errorprocess
Picture1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
Picture1.Move 0, 0
Exit Sub
'errorprocess:
' MsgBox "不可识别的格式"
' Exit Sub
End Sub
Private Sub Picture1_Click()
Picture1.Move Picture1.Left + File1.Width, Picture1.Top
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -