📄 form10.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form10
BorderStyle = 1 'Fixed Single
Caption = "数据恢复"
ClientHeight = 1440
ClientLeft = 45
ClientTop = 435
ClientWidth = 4680
Icon = "Form10.frx":0000
LinkTopic = "Form10"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1440
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Height = 375
Left = 1080
TabIndex = 3
Top = 120
Width = 3015
End
Begin VB.TextBox Text2
Height = 375
Left = 1080
Locked = -1 'True
TabIndex = 2
Top = 600
Width = 3015
End
Begin VB.CommandButton Command1
Caption = "*"
Height = 375
Left = 4080
TabIndex = 1
Top = 120
Width = 375
End
Begin VB.CommandButton Command2
Caption = "恢复数据"
Height = 300
Left = 3480
TabIndex = 0
Top = 1080
Width = 930
End
Begin MSComDlg.CommonDialog Cg1
Left = 480
Top = 1200
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.Label Label1
Caption = "数据库恢复路径"
Height = 495
Left = 120
TabIndex = 5
Top = 600
Width = 735
End
Begin VB.Label Label2
Caption = "数具库备份所在路径"
Height = 375
Left = 0
TabIndex = 4
Top = 120
Width = 1095
End
End
Attribute VB_Name = "Form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim fs As New FileSystemObject
Private Sub Command1_Click()
Cg1.Filter = "*.sj"
Cg1.ShowOpen
Text1.Text = Cg1.FileName
End Sub
Private Sub Command2_Click()
Unload Form4
fs.CopyFile Text1.Text, Text2.Text, True
MsgBox "数据恢复成功!"
Call dataopen
Form4.Show
Unload Me
End Sub
Private Sub Form_Load()
Text2.Text = App.Path & "\wish.mdb"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -