main_xtgl_sjbf.frm

来自「珠宝为例」· FRM 代码 · 共 50 行

FRM
50
字号
VERSION 5.00
Begin VB.Form main_xtgl_sjbf 
   Caption         =   "系统管理——【数据备份】"
   ClientHeight    =   2280
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   Icon            =   "main_xtgl_sjbf.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   2280
   ScaleWidth      =   4680
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   420
      Left            =   1230
      TabIndex        =   1
      Top             =   1275
      Width           =   2175
   End
   Begin VB.CommandButton Command1 
      Caption         =   "数据备份"
      Height          =   420
      Left            =   1230
      TabIndex        =   0
      Top             =   645
      Width           =   2175
   End
End
Attribute VB_Name = "main_xtgl_sjbf"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'设置鼠标样式
  Me.MousePointer = 11
'备份数据库
  FileCopy App.Path & "\zbjxc.mdb", App.Path & "\zbjxc" & Date & ".mdb"
  Me.MousePointer = 0
  MsgBox "数据已备份完毕。"
End Sub
Private Sub Command2_Click()
  frm_main.Enabled = True
  Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
  frm_main.Enabled = True
End Sub

⌨️ 快捷键说明

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