📄 文件控件.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5775
ClientLeft = 60
ClientTop = 345
ClientWidth = 8235
LinkTopic = "Form1"
ScaleHeight = 5775
ScaleWidth = 8235
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
Height = 2295
Left = 3840
ScaleHeight = 2235
ScaleWidth = 4155
TabIndex = 3
Top = 360
Width = 4215
End
Begin VB.DirListBox Dir1
Height = 4710
Left = 120
TabIndex = 2
Top = 480
Width = 1815
End
Begin VB.FileListBox File1
Height = 5310
Left = 2040
TabIndex = 1
Top = 240
Width = 1575
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 120
TabIndex = 0
Top = 5280
Width = 1815
End
Begin VB.Label Label2
Caption = "图像框"
Height = 255
Left = 3840
TabIndex = 5
Top = 2760
Width = 735
End
Begin VB.Label Label1
Caption = "图片框"
Height = 255
Left = 3840
TabIndex = 4
Top = 120
Width = 735
End
Begin VB.Image Image1
Height = 2535
Left = 3840
Stretch = -1 'True
Top = 3120
Width = 4215
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()
Picture1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
Image1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -