?? main_xtgl_sjhf.frm
字號:
VERSION 5.00
Begin VB.Form main_xtgl_sjhf
Caption = "系統(tǒng)管理——【數(shù)據(jù)恢復(fù)】"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4560
Icon = "main_xtgl_sjhf.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4560
StartUpPosition = 1 '所有者中心
Begin VB.TextBox Text1
Height = 345
Left = 2010
TabIndex = 5
Top = 150
Visible = 0 'False
Width = 2175
End
Begin VB.FileListBox File1
Height = 1890
Left = 15
Pattern = "*.mdb"
TabIndex = 4
Top = 1215
Width = 1935
End
Begin VB.DirListBox Dir1
Height = 720
Left = 60
TabIndex = 3
Top = 420
Width = 1860
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 75
TabIndex = 2
Top = 45
Width = 1845
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 420
Left = 2175
TabIndex = 1
Top = 2685
Width = 2175
End
Begin VB.CommandButton Command1
Caption = "數(shù)據(jù)恢復(fù)"
Height = 420
Left = 2175
TabIndex = 0
Top = 2055
Width = 2175
End
End
Attribute VB_Name = "main_xtgl_sjhf"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
text1.Text = Dir1.Path & "\" & File1.FileName
End Sub
Private Sub Command1_Click()
'恢復(fù)指定路徑下的數(shù)據(jù)庫
If text1.Text = "" Then
MsgBox "請選擇要恢復(fù)的數(shù)據(jù)!"
Else
Me.MousePointer = 11
FileCopy Dir1.Path & "\" & File1.FileName, App.Path & "\zbjxc.mdb"
Me.MousePointer = 0
MsgBox "數(shù)據(jù)已恢復(fù)完畢!"
End If
End Sub
Private Sub Command2_Click()
frm_main.Show
Unload Me
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -