📄 frmfindpath.frm
字号:
VERSION 5.00
Begin VB.Form frmFindPath
BorderStyle = 3 'Fixed Dialog
Caption = "选择路径"
ClientHeight = 4185
ClientLeft = 4425
ClientTop = 2730
ClientWidth = 3165
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4185
ScaleWidth = 3165
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command1
Caption = " 取 消(&C)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Index = 1
Left = 1605
TabIndex = 3
Top = 3645
Width = 1400
End
Begin VB.CommandButton Command1
Caption = " 确 定(&S)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Index = 0
Left = 195
TabIndex = 2
Top = 3645
Width = 1400
End
Begin VB.DirListBox Dir1
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2820
Left = 195
TabIndex = 1
Top = 585
Width = 2800
End
Begin VB.DriveListBox Drive1
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 195
TabIndex = 0
Top = 180
Width = 2800
End
End
Attribute VB_Name = "frmFindPath"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public ThisPath As String
Private Sub Command1_Click(Index As Integer)
Select Case Index
Case 0
'针对不同的父窗体调用,返回该窗体路径
' If Me.Tag = "ImgCopy" Then
ThisPath = Dir1.Path
' End If
Unload Me
Case 1
Unload Me
End Select
End Sub
Private Sub Command1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii = vbKeyEscape Then
Unload Me
End If
End Sub
Private Sub Dir1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyEscape Then
Unload Me
End If
End Sub
Private Sub Drive1_Change()
On Error GoTo ErrorHandler
Dir1.Path = Drive1.List(Drive1.ListIndex)
ErrorHandler:
If Err Then
MsgBox Err.Description, vbCritical
Err.Clear
End If
End Sub
Private Sub Drive1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyEscape Then
Unload Me
End If
End Sub
Private Sub Form_Load()
Me.Left = fMainForm.Left + (fMainForm.Width - Me.Width) / 2
Me.Top = fMainForm.Top + (fMainForm.Height - Me.Height) / 2
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -