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

📄 frmsetsystem.frm

📁 自考软件工程_宋瑞峰 自考软件工程_宋瑞峰
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmSetSystem 
   Caption         =   "系统设置"
   ClientHeight    =   3210
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4725
   Icon            =   "FrmSetSystem.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   3210
   ScaleWidth      =   4725
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame2 
      Caption         =   "罚款设置"
      Height          =   1215
      Left            =   240
      TabIndex        =   8
      Top             =   1680
      Width           =   4095
      Begin VB.CommandButton Command2 
         Caption         =   "更新"
         Height          =   375
         Left            =   3120
         TabIndex        =   15
         Top             =   600
         Width           =   855
      End
      Begin VB.TextBox TxtMoney 
         Height          =   270
         Left            =   1680
         TabIndex        =   12
         Top             =   720
         Width           =   735
      End
      Begin VB.TextBox TxtDays 
         Height          =   270
         Left            =   1680
         TabIndex        =   11
         Top             =   360
         Width           =   735
      End
      Begin VB.Label Label7 
         Caption         =   "角"
         Height          =   255
         Left            =   2640
         TabIndex        =   14
         Top             =   720
         Width           =   615
      End
      Begin VB.Label Label6 
         Caption         =   "天"
         Height          =   255
         Left            =   2640
         TabIndex        =   13
         Top             =   360
         Width           =   375
      End
      Begin VB.Label Label5 
         Caption         =   "超期每日罚款"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   720
         Width           =   1095
      End
      Begin VB.Label Label4 
         Caption         =   "最多借阅天数"
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   360
         Width           =   1215
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "借阅数量"
      Height          =   1455
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   4095
      Begin VB.CommandButton Command1 
         Caption         =   "更新"
         Height          =   375
         Left            =   3120
         TabIndex        =   7
         Top             =   720
         Width           =   855
      End
      Begin VB.TextBox TxtReadC 
         Height          =   270
         Left            =   1440
         TabIndex        =   6
         Top             =   960
         Width           =   1215
      End
      Begin VB.TextBox TxtReadB 
         Height          =   270
         Left            =   1440
         TabIndex        =   5
         Top             =   600
         Width           =   1215
      End
      Begin VB.TextBox TxtReadA 
         Height          =   270
         Left            =   1440
         TabIndex        =   4
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label3 
         Caption         =   "C类读者"
         Height          =   255
         Left            =   360
         TabIndex        =   3
         Top             =   960
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "B类读者"
         Height          =   255
         Left            =   360
         TabIndex        =   2
         Top             =   600
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "A类读者"
         Height          =   255
         Left            =   360
         TabIndex        =   1
         Top             =   240
         Width           =   975
      End
   End
End
Attribute VB_Name = "FrmSetSystem"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
WritePrivateProfileString "Reader", "A", TxtReadA.Text, App.Path & "\lib.ini"
WritePrivateProfileString "Reader", "B", TxtReadB.Text, App.Path & "\lib.ini"
WritePrivateProfileString "Reader", "C", TxtReadC.Text, App.Path & "\lib.ini"
End Sub

Private Sub Command2_Click()
WritePrivateProfileString "Punish", "days", TxtDays.Text, App.Path & "\lib.ini"
WritePrivateProfileString "Punish", "money", TxtMoney.Text, App.Path & "\lib.ini"
End Sub

Private Sub Form_Load()
Dim iTemp As Integer

'读取数据初始化文本框
iTemp = GetPrivateProfileInt("Reader", "A", 8, App.Path & "\lib.ini")
TxtReadA.Text = Trim(Str(iTemp))

iTemp = GetPrivateProfileInt("Reader", "B", 5, App.Path & "\lib.ini")
TxtReadB.Text = Trim(Str(iTemp))

iTemp = GetPrivateProfileInt("Reader", "C", 3, App.Path & "\lib.ini")
TxtReadC.Text = Trim(Str(iTemp))

iTemp = GetPrivateProfileInt("Punish", "days", 30, App.Path & "\lib.ini")
TxtDays.Text = Trim(Str(iTemp))

iTemp = GetPrivateProfileInt("Punish", "money", 2, App.Path & "\lib.ini")
TxtMoney.Text = Trim(Str(iTemp))
End Sub

⌨️ 快捷键说明

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