📄 f1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3675
ClientLeft = 60
ClientTop = 345
ClientWidth = 7755
LinkTopic = "Form1"
ScaleHeight = 3675
ScaleWidth = 7755
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo1
Height = 300
Left = 2640
TabIndex = 4
Text = "Combo1"
Top = 3120
Width = 1815
End
Begin VB.TextBox text1
Height = 390
Left = 2640
TabIndex = 3
Text = "*.txt"
Top = 600
Width = 1815
End
Begin VB.FileListBox File1
Height = 1710
Left = 2640
TabIndex = 2
Top = 1080
Width = 1815
End
Begin VB.DirListBox Dir1
Height = 1770
Left = 360
TabIndex = 1
Top = 1080
Width = 2055
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 360
TabIndex = 0
Top = 3120
Width = 2055
End
Begin VB.Label Label4
Height = 495
Left = 360
TabIndex = 8
Top = 600
Width = 1935
End
Begin VB.Label Label3
Caption = "路径名"
Height = 255
Left = 480
TabIndex = 7
Top = 240
Width = 1455
End
Begin VB.Label Label2
Caption = "预览:"
Height = 255
Left = 4920
TabIndex = 6
Top = 360
Width = 1695
End
Begin VB.Image Image1
Height = 2535
Left = 4800
Top = 840
Width = 2535
End
Begin VB.Label Label1
Caption = "文件名:"
Height = 255
Left = 2640
TabIndex = 5
Top = 240
Width = 1695
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Label4.Caption = Dir1.Path
Combo1.AddItem ("*.bmp")
Combo1.AddItem ("*.ico")
Combo1.Text = "*.bmp"
File1.Pattern = "*.bmp"
End Sub
Private Sub Combo1_Click()
File1.Pattern = Combo1.Text
File1.Path = Dir1.Path
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
Label4.Caption = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
text1.Text = File1.FileName
Image1.Picture = LoadPicture(File1.Path + "\" + text1.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -