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

📄 saveasform.frm

📁 一个银行的管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form saveAsForm 
   Caption         =   "备份"
   ClientHeight    =   4620
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5565
   LinkTopic       =   "Form1"
   ScaleHeight     =   4620
   ScaleWidth      =   5565
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command3 
      Caption         =   "取消"
      Height          =   495
      Left            =   2880
      TabIndex        =   5
      Top             =   3720
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "保存"
      Height          =   495
      Left            =   720
      TabIndex        =   4
      Top             =   3720
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "新建文件夹"
      Height          =   375
      Left            =   2520
      TabIndex        =   3
      Top             =   360
      Width           =   1455
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   480
      TabIndex        =   2
      Top             =   360
      Width           =   1695
   End
   Begin VB.FileListBox File1 
      Height          =   2430
      Left            =   2520
      TabIndex        =   1
      Top             =   960
      Width           =   2055
   End
   Begin VB.DirListBox Dir1 
      Height          =   2400
      Left            =   480
      TabIndex        =   0
      Top             =   960
      Width           =   1695
   End
End
Attribute VB_Name = "saveAsForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
   MkDir Dir1.Path + "\" + "新建文件夹"
   Dir1.Path = Drive1.Drive
End Sub

Private Sub Command2_Click()
   Dim fname As String
   fname = InputBox("请输入备份后文件名", "文件名")
   fname = Dir1.Path + "\" + fname + ".bak"
   FileCopy string2 & "db1.mdb", fname
   MsgBox "数据库备分成功", vbOKOnly, "成功!"
   Unload Me
   
End Sub

Private Sub Command3_Click()
  Unload Me
End Sub

Private Sub Dir1_Change()
   File1.Path = Dir1.Path
End Sub

Private Sub Drive1_Change()
  Dir1.Path = Drive1.Drive
End Sub



⌨️ 快捷键说明

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