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

📄 frmbeifen.frm

📁 图书管理系统,图书信息,添加学生信息,借书与归还记载,借书卡办理,查询图书信息
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form frmbeifen 
   Caption         =   "数据安全管理"
   ClientHeight    =   2670
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6420
   LinkTopic       =   "Form1"
   ScaleHeight     =   2670
   ScaleWidth      =   6420
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Interval        =   500
      Left            =   2640
      Top             =   1080
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   1080
      Top             =   4680
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Frame Frame1 
      Height          =   2175
      Left            =   480
      TabIndex        =   0
      Top             =   240
      Width           =   5655
      Begin VB.CommandButton Command1 
         BackColor       =   &H00FFFFFF&
         Caption         =   "<<"
         Height          =   375
         Left            =   4680
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   720
         Width           =   495
      End
      Begin VB.CommandButton cmd_1 
         Caption         =   "返回(&A)"
         Height          =   495
         Left            =   2880
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   1320
         Width           =   1215
      End
      Begin VB.CommandButton cmd_backup 
         Caption         =   "开始备份(&B)"
         Height          =   495
         Left            =   600
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   1320
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   960
         TabIndex        =   2
         Top             =   600
         Width           =   2895
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "请输入或者选择数据库备份的路径"
         Height          =   180
         Left            =   960
         TabIndex        =   1
         Top             =   240
         Width           =   2700
      End
   End
End
Attribute VB_Name = "frmbeifen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim StrCnn As New Connection     '定义连接
Dim key, list, sql As String     '定义字符串变量
Dim i As Integer

Private Sub cmd_1_Click()
Unload Me
End Sub

Private Sub cmd_backup_Click()

If Text1.Text = "" Then
MsgBox "请您选择数据库备份的路径!", 64, "图书管理系统"
Else
cmd_1.Enabled = False
Command1.Enabled = False
Dim connter As Integer
Dim sql As String

            adoCon.Open "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=tshgl"
            sql = "backup DATABASE tshgl TO disk='" & Text1.Text & "'"
            adoCon.Execute (sql)     '执行SQL语句
            adoCon.Close
  MsgBox "数据库备份成功!", 64
  Command1.Enabled = True
  cmd_1.Enabled = True
 End If

End Sub



Private Sub Command1_Click()
CommonDialog1.Filter = "备份文件(*.bak)|*.bak|ALL File(*.*)|*.*"
CommonDialog1.ShowSave
Text1.Text = CommonDialog1.FileName
End Sub
Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
i = 0
End Sub


Private Sub Timer1_Timer()
If i Mod 2 = 0 Then
Command1.BackColor = (&HFFFFFF)
i = i + 1
Else
Command1.BackColor = (&H0)
i = i + 1
End If
End Sub

⌨️ 快捷键说明

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