?? frmrestore.frm
字號:
VERSION 5.00
Begin VB.Form frmRestore
BorderStyle = 1 'Fixed Single
Caption = "系統數據恢復"
ClientHeight = 2490
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 3990
Icon = "frmRestore.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2490
ScaleWidth = 3990
StartUpPosition = 2 '屏幕中心
Begin VB.DirListBox Dir1
Height = 1140
Left = 2070
TabIndex = 3
Top = 600
Width = 1575
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 2063
TabIndex = 2
Top = 210
Width = 1575
End
Begin VB.CommandButton CancelButton
Caption = "關閉"
Default = -1 'True
Height = 300
Left = 2075
TabIndex = 1
Top = 2010
Width = 1100
End
Begin VB.CommandButton OKButton
Caption = "確定"
Height = 300
Left = 815
TabIndex = 0
Top = 2010
Width = 1100
End
Begin VB.Label Label1
Caption = "請選擇源盤和路徑:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 360
TabIndex = 4
Top = 210
Width = 1305
End
End
Attribute VB_Name = "frmRestore"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Selpath As String '表示所選擇的路徑
Private Sub CancelButton_Click()
Unload frmRestore
End Sub
Private Sub Dir1_Change()
Selpath = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Form_Load()
Dir1.Path = SystemDir + "\Data"
End Sub
Private Sub OKButton_Click()
'Dim fso As New FileSystemObject
'Selpath = Dir1.Path
'If Len(Selpath) > 3 Then
' Selpath = Selpath + "\"
'End If
'If MsgBox("真的要恢復數據嗎?", vbOKCancel + vbQuestion, "數據恢復", "", 0) = vbOK Then
' '恢復前,先關閉已打開的文件
' fso.CopyFile Selpath + "ManufactBak.mdb", SystemDir + "\Data\Manufact.mdb", True
' MsgBox "數據恢復完成!", vbOKOnly + vbInformation, "數據恢復"
'End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -