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

📄 setfrm.frm

📁 本系统是图书管理信息系统一个简单实例。本系统主要有系统管理、图书管理、借书证管理、借书和还书操作、报表打印等模块组成。
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form setfrm 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "设置"
   ClientHeight    =   2685
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4800
   Icon            =   "Setfrm.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2685
   ScaleWidth      =   4800
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Height          =   2535
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   4575
      Begin VB.CommandButton cmdOkCancel 
         Cancel          =   -1  'True
         Caption         =   "取消(&C)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   1
         Left            =   2640
         TabIndex        =   1
         Top             =   2040
         Width           =   975
      End
      Begin VB.CommandButton cmdOkCancel 
         Caption         =   "确定(&E)"
         Default         =   -1  'True
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   0
         Left            =   720
         TabIndex        =   9
         Top             =   2040
         Width           =   975
      End
      Begin VB.Frame Frame3 
         Height          =   135
         Left            =   360
         TabIndex        =   8
         Top             =   360
         Width           =   3855
      End
      Begin VB.TextBox txtCost 
         Height          =   315
         Left            =   1920
         TabIndex        =   7
         Text            =   "Text1"
         Top             =   600
         Width           =   1575
      End
      Begin VB.Frame Frame2 
         Height          =   135
         Left            =   360
         TabIndex        =   5
         Top             =   1080
         Width           =   3855
      End
      Begin MSComCtl2.UpDown UpDown1 
         Height          =   330
         Left            =   3000
         TabIndex        =   4
         Top             =   1320
         Width           =   225
         _ExtentX        =   476
         _ExtentY        =   582
         _Version        =   393216
         BuddyControl    =   "txtLentNum"
         BuddyDispid     =   196614
         OrigLeft        =   2640
         OrigTop         =   1080
         OrigRight       =   2865
         OrigBottom      =   1455
         Max             =   100
         SyncBuddy       =   -1  'True
         BuddyProperty   =   0
         Enabled         =   -1  'True
      End
      Begin VB.TextBox txtLentNum 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   2160
         TabIndex        =   3
         Text            =   "Text1"
         Top             =   1320
         Width           =   870
      End
      Begin VB.Label Label3 
         Caption         =   "元"
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   3840
         TabIndex        =   10
         Top             =   720
         Width           =   375
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "超出一天罚款金额"
         ForeColor       =   &H00FF0000&
         Height          =   180
         Left            =   360
         TabIndex        =   6
         Top             =   720
         Width           =   1440
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "每人借书册数"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   180
         Left            =   600
         TabIndex        =   2
         Top             =   1440
         Width           =   1080
      End
   End
End
Attribute VB_Name = "setfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Type MSet
    BookNum As Integer
    BookCost As Single
End Type
Dim SetFlag As MSet
Private Sub cmdOkCancel_Click(Index As Integer)
Select Case Index
    Case 0
        BookNum = Val(txtLentNum)
        FaCost = Val(txtCost)
        SetFlag.BookNum = Val(txtLentNum.Text)
        SetFlag.BookCost = Val(txtCost.Text)
        Put #1, 1, SetFlag
        Unload Me
    Case 1
        Unload Me
End Select
End Sub
Private Sub Form_Load()
Open App.Path & "\Database\Set.Dat" For Random As #2 Len = Len(SetFlag)
Get #1, 1, SetFlag
txtLentNum = SetFlag.BookNum
txtCost = SetFlag.BookCost
End Sub

Private Sub Form_Resize()
MsgBox "请确认图书归还以后在修改这些设置", 0 + 48, "警告"
End Sub

Private Sub Form_Unload(Cancel As Integer)
Close #2
End Sub

⌨️ 快捷键说明

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