📄 dir.frm
字号:
VERSION 5.00
Begin VB.Form Form9
Caption = "设置目录"
ClientHeight = 4170
ClientLeft = 60
ClientTop = 345
ClientWidth = 3420
LinkTopic = "Form2"
ScaleHeight = 4170
ScaleWidth = 3420
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 1920
TabIndex = 3
Top = 3360
Width = 855
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 120
TabIndex = 2
Top = 3360
Width = 975
End
Begin VB.DirListBox Dir1
Height = 2400
Left = 120
TabIndex = 1
Top = 600
Width = 3135
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 120
TabIndex = 0
Top = 120
Width = 1935
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Sub Command1_Click()
Form8.Text1.Text = Dir1.Path
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Form_Load()
Dim i As Long
Dim sx, sy As Integer
sx = Screen.Width / 52 + 13
sy = Screen.Height / 60 + 20
i = SetWindowPos(Me.hwnd, -1, sx, sy, 0, 0, &H1)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Form1.Enabled = True
Form1.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -