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

📄 add.frm

📁 这是我学生写的关于游戏系统的论文
💻 FRM
字号:
VERSION 5.00
Begin VB.Form add 
   Caption         =   "增加用户记录"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   Icon            =   "add.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Height          =   2895
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4335
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1680
         TabIndex        =   6
         Top             =   360
         Width           =   1695
      End
      Begin VB.TextBox Text2 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   5
         Top             =   960
         Width           =   1695
      End
      Begin VB.CommandButton Command1 
         Caption         =   "保存"
         Height          =   375
         Left            =   1080
         TabIndex        =   4
         Top             =   2280
         Width           =   855
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退出 "
         Height          =   375
         Left            =   2400
         TabIndex        =   3
         Top             =   2280
         Width           =   855
      End
      Begin VB.OptionButton Option1 
         Caption         =   "管理员"
         Height          =   375
         Left            =   1560
         TabIndex        =   2
         Top             =   1680
         Width           =   855
      End
      Begin VB.OptionButton Option2 
         Caption         =   "用户"
         Height          =   375
         Left            =   2640
         TabIndex        =   1
         Top             =   1680
         Width           =   735
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "姓名:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   720
         TabIndex        =   9
         Top             =   360
         Width           =   780
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "密码:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   720
         TabIndex        =   8
         Top             =   1080
         Width           =   780
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "级别:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   720
         TabIndex        =   7
         Top             =   1680
         Width           =   780
      End
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "D:\图书管理系统\db2.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   1440
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "manager"
      Top             =   120
      Visible         =   0   'False
      Width           =   1455
   End
End
Attribute VB_Name = "add"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Data1.Recordset.AddNew
Data1.Recordset.Fields("username") = Text1.Text
Data1.Recordset.Fields("password") = Text2.Text
If Option1.Value = True Then
Data1.Recordset.Fields("class") = Option1.Caption
End If
If Option2.Value = True Then
  Data1.Recordset.Fields("class") = Option2.Caption
End If
Data1.Recordset.Update
MsgBox "保存成功"
Data1.Refresh
Unload add
usermanager.Refresh
usermanager.Show
End Sub

Private Sub Command2_Click()
Unload add
usermanager.Show
End Sub

Private Sub Command3_Click()
Text1.Text = ""
Text2.Text = ""

End Sub

Private Sub Form_Load()
Dim A As Integer
End Sub

⌨️ 快捷键说明

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