📄 openfileform.frm
字号:
VERSION 5.00
Begin VB.Form openFileForm
Caption = "恢复"
ClientHeight = 3840
ClientLeft = 60
ClientTop = 450
ClientWidth = 5235
LinkTopic = "Form1"
ScaleHeight = 3840
ScaleWidth = 5235
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 3120
TabIndex = 4
Top = 3000
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 960
TabIndex = 3
Top = 3000
Width = 1215
End
Begin VB.DirListBox Dir1
Height = 1560
Left = 840
TabIndex = 2
Top = 960
Width = 1575
End
Begin VB.FileListBox File1
Height = 1530
Left = 2880
Pattern = "*.bak"
TabIndex = 1
Top = 960
Width = 1695
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 840
TabIndex = 0
Top = 480
Width = 1575
End
End
Attribute VB_Name = "openFileForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim fname As String
fname = Dir1.Path + "\" + File1.FileName
Kill string2 & "db1.mdb"
Name fname As string2 & "db1.mdb"
FileCopy string2 & "db1.mdb", Dir1.Path + "\" + File1.FileName
MsgBox "数据库恢复成功", vbOKOnly, "成功"
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -