📄 frmsetpath.frm
字号:
VERSION 5.00
Begin VB.Form frmSetPath
Caption = "设置备份路径"
ClientHeight = 2865
ClientLeft = 60
ClientTop = 345
ClientWidth = 4215
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 2865
ScaleWidth = 4215
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox cboType
Height = 300
Left = 2280
TabIndex = 4
Top = 1920
Width = 1695
End
Begin VB.CommandButton cmdSet
Caption = "确定"
Default = -1 'True
Height = 375
Left = 1680
TabIndex = 3
Top = 2400
Width = 855
End
Begin VB.FileListBox filFile
Height = 1710
Left = 2280
TabIndex = 2
Top = 120
Width = 1695
End
Begin VB.DirListBox dirDirectory
Height = 1770
Left = 240
TabIndex = 1
Top = 120
Width = 1695
End
Begin VB.DriveListBox drvDrive
Height = 300
Left = 240
TabIndex = 0
Top = 1920
Width = 1695
End
End
Attribute VB_Name = "frmSetPath"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cboType_Click()
filFile.Pattern = Mid(cboType.Text, 26)
End Sub
Private Sub cmdSet_Click()
frmBackup.cmdStartBackup.Enabled = True
frmBackup.Text1.Text = dirDirectory.Path & "\" & filFile.FileName
Unload Me
End Sub
Private Sub dirDirectory_Change()
filFile.Path = dirDirectory.Path
End Sub
Private Sub drvDrive_Change()
dirDirectory.Path = drvDrive.Drive
End Sub
Private Sub Form_Load()
frmSetPath.Picture = LoadPicture(App.Path + "\picture\中国娃娃1.bmp")
Item = "所有文件(*.*)"
cboType.AddItem Item + Space(25 - Len(Item)) + "*.*"
Item = "数据库文件(*.mdb)"
cboType.AddItem Item + Space(25 - Len(Item)) + "*.mdb"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -