📄 frmsetdir.frm
字号:
VERSION 5.00
Begin VB.Form frmSetDir
Caption = "Form1"
ClientHeight = 3624
ClientLeft = 48
ClientTop = 336
ClientWidth = 2964
LinkTopic = "Form1"
ScaleHeight = 3624
ScaleWidth = 2964
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton cmdOK
Caption = "确定"
Height = 432
Left = 60
TabIndex = 3
Top = 3120
Width = 2832
End
Begin VB.DirListBox Dir1
Height = 2232
Left = 60
TabIndex = 1
Top = 840
Width = 2832
End
Begin VB.DriveListBox Drive1
Height = 288
Left = 60
TabIndex = 0
Top = 480
Width = 2832
End
Begin VB.Label Label1
Caption = "选择Server根目录"
BeginProperty Font
Name = "幼圆"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 312
Left = 60
TabIndex = 2
Top = 120
Width = 2832
End
End
Attribute VB_Name = "frmSetDir"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'该窗体用于设置服务器的根目录
Private Sub cmdOk_Click()
RootPath = Dir1.Path
If Right(RootPath, 1) = "\" Then
RootPath = Mid(RootPath, 1, Len(RootPath) - 1)
End If
frmSet.lblRoot.Caption = RootPath
Unload Me
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -