⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main_xtgl_sjhf.frm

📁 珠宝为例
💻 FRM
字号:
VERSION 5.00
Begin VB.Form main_xtgl_sjhf 
   Caption         =   "系统管理——【数据恢复】"
   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         =   "数据恢复"
      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()
'恢复指定路径下的数据库
  If text1.Text = "" Then
     MsgBox "请选择要恢复的数据!"
   Else
    Me.MousePointer = 11
    FileCopy Dir1.Path & "\" & File1.FileName, App.Path & "\zbjxc.mdb"
    Me.MousePointer = 0
    MsgBox "数据已恢复完毕!"
 End If
End Sub
Private Sub Command2_Click()
  frm_main.Show
  Unload Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -