📄 menu512.frm
字号:
VERSION 5.00
Begin VB.Form winmenu512
Caption = "Form2"
ClientHeight = 4725
ClientLeft = 60
ClientTop = 345
ClientWidth = 6555
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 4725
ScaleWidth = 6555
Begin VB.Frame Frame1
Caption = "文件搜索对话框"
Height = 4335
Left = 120
TabIndex = 0
Top = 120
Width = 6255
Begin VB.CommandButton Command4
Caption = "图像预览"
Height = 375
Left = 240
TabIndex = 7
Top = 3720
Width = 1575
End
Begin VB.TextBox Text1
Height = 375
Left = 840
TabIndex = 6
Top = 3240
Width = 5175
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 4200
TabIndex = 5
Top = 3720
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 2160
TabIndex = 4
Top = 3720
Width = 1695
End
Begin VB.FileListBox File1
Height = 2790
Left = 3600
TabIndex = 3
Top = 360
Width = 2415
End
Begin VB.DirListBox Dir1
Height = 2190
Left = 240
TabIndex = 2
Top = 960
Width = 2775
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 240
TabIndex = 1
Top = 360
Width = 2775
End
Begin VB.Label Label1
Caption = "路径:"
Height = 255
Left = 240
TabIndex = 8
Top = 3360
Width = 615
End
End
Begin VB.Image Image1
Height = 1095
Left = 3960
Stretch = -1 'True
Top = 3240
Width = 3255
End
End
Attribute VB_Name = "winmenu512"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
frmzhda.Text1.Text = Text1.Text
frmzhda.Enabled = True
Unload Me
End Sub
Private Sub Command2_Click()
frmzhda.Enabled = True
Unload Me
End Sub
Private Sub Command4_Click()
If LTrim(Text1.Text) = "" Then Exit Sub
Image1.Visible = True
Image1.Left = 0
Image1.Top = 0
Image1.Width = Me.ScaleWidth
Image1.Height = Me.ScaleHeight
Image1.Picture = LoadPicture(LTrim(RTrim(Text1.Text)))
Frame1.Visible = False
Me.Caption = "当前预览图像为:" + LTrim(Text1.Text)
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_DblClick()
If LenB(File1.Path) = 6 Then Text1.Text = File1.Path + File1.FileName Else Text1.Text = File1.Path + "\" + File1.FileName
End Sub
Private Sub Form_Load()
Me.Height = 5130
Me.Width = 6675
File1.Pattern = "*.bmp"
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
frmzhda.Enabled = True
End Sub
Private Sub Image1_Click()
Frame1.Visible = True
Image1.Visible = False
Me.Caption = "文件搜索"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -