📄 frmdir.frm
字号:
VERSION 5.00
Begin VB.Form Frmdir
Caption = "数据库库路径设置"
ClientHeight = 3540
ClientLeft = 60
ClientTop = 345
ClientWidth = 4380
Icon = "Frmdir.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3540
ScaleWidth = 4380
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "数据库库路径设置"
Height = 3135
Left = 120
TabIndex = 0
Top = 240
Width = 4095
Begin VB.DriveListBox Drive1
Height = 300
Left = 120
TabIndex = 4
Top = 360
Width = 2535
End
Begin VB.DirListBox Dir1
Height = 1980
Left = 120
TabIndex = 3
Top = 840
Width = 2535
End
Begin VB.CommandButton Cmdok
Caption = "确定"
Height = 375
Left = 3000
TabIndex = 2
Top = 720
Width = 855
End
Begin VB.CommandButton Cmdexit
Caption = "退出"
Height = 375
Left = 3000
TabIndex = 1
Top = 1440
Width = 855
End
End
End
Attribute VB_Name = "Frmdir"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmdexit_Click()
Unload Me
End Sub
Private Sub Cmdok_Click()
Frmchoice.txt_backup_path.Text = Dir1.Path
Unload Me
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
Dir1.Refresh
End Sub
Private Sub Form_Load()
Dim Strtemp As String
CenterForm Me
Strtemp = GetSetting("databackup", "sysinformation", "txt_backup_path")
If Len(Trim(Strtemp)) = 0 Then
Drive1.Drive = App.Path
Else
Dir1.Path = Strtemp
Drive1.Drive = Dir1.Path
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -