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

📄 form_cjxtgl21.frm

📁 手工出卷和自动出卷以及审核试卷和修改试卷
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Form_CJXTGL21 
   Caption         =   "添加用户"
   ClientHeight    =   5370
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6825
   LinkTopic       =   "Form1"
   ScaleHeight     =   5370
   ScaleWidth      =   6825
   Visible         =   0   'False
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2520
      Top             =   4140
      Visible         =   0   'False
      Width           =   1965
      _ExtentX        =   3466
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=PAPER;Data Source=local"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=PAPER;Data Source=local"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   "sa"
      Password        =   "sa"
      RecordSource    =   "select distinct privilege from users where privilege<>'管理员' "
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSDataListLib.DataCombo DataCombo1 
      Bindings        =   "Form_CJXTGL21.frx":0000
      Height          =   360
      Left            =   2670
      TabIndex        =   9
      Top             =   2820
      Width           =   2265
      _ExtentX        =   3995
      _ExtentY        =   635
      _Version        =   393216
      ListField       =   "privilege"
      Text            =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取 消"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   555
      Left            =   3690
      TabIndex        =   8
      Top             =   3420
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "提 交"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   555
      Left            =   1950
      TabIndex        =   7
      Top             =   3420
      Width           =   1215
   End
   Begin VB.TextBox Text_rpwd 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2670
      PasswordChar    =   "*"
      TabIndex        =   5
      Top             =   2240
      Width           =   2265
   End
   Begin VB.TextBox Text_Pwd 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2670
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   1660
      Width           =   2265
   End
   Begin VB.TextBox Text_Name 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2670
      TabIndex        =   1
      Top             =   1080
      Width           =   2265
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   840
      Top             =   120
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   1
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form_CJXTGL21.frx":0015
            Key             =   "退出"
            Object.Tag             =   "Exit"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   420
      Left            =   0
      TabIndex        =   10
      Top             =   0
      Width           =   6825
      _ExtentX        =   12039
      _ExtentY        =   741
      ButtonWidth     =   1032
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   1
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Exit"
            Object.ToolTipText     =   "退出"
            ImageIndex      =   1
         EndProperty
      EndProperty
      Begin MSAdodcLib.Adodc Adodc_users 
         Height          =   405
         Left            =   5490
         Top             =   3900
         Width           =   2265
         _ExtentX        =   3995
         _ExtentY        =   714
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   2
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=PAPER;Data Source=local"
         OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=PAPER;Data Source=local"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   "sa"
         Password        =   "sa"
         RecordSource    =   "users"
         Caption         =   "Adodc2"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
   End
   Begin VB.Label Label5 
      Caption         =   "添加新用户"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   2490
      TabIndex        =   11
      Top             =   600
      Width           =   1545
   End
   Begin VB.Label Label4 
      Caption         =   "权限:"
      Height          =   315
      Left            =   1620
      TabIndex        =   6
      Top             =   2910
      Width           =   945
   End
   Begin VB.Label Label3 
      Caption         =   "确认密码:"
      Height          =   315
      Left            =   1620
      TabIndex        =   3
      Top             =   2325
      Width           =   945
   End
   Begin VB.Label Label2 
      Caption         =   "密码:"
      Height          =   315
      Left            =   1620
      TabIndex        =   2
      Top             =   1755
      Width           =   945
   End
   Begin VB.Label Label1 
      Caption         =   "用户名:"
      Height          =   315
      Left            =   1620
      TabIndex        =   0
      Top             =   1170
      Width           =   945
   End
End
Attribute VB_Name = "Form_CJXTGL21"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Rs_users As New ADODB.Recordset

Private Sub Command1_Click()
   Dim XM As String
   Dim MM As String
   Dim QMM As String
   Dim qx As String
   XM = Text_Name.Text
   MM = Text_Pwd.Text
   QMM = Text_rpwd.Text
   qx = DataCombo1.Text
   If MM = QMM Then
     Dim sql As String
     sql = "insert into users values('" & XM & "','" & MM & "','" & qx & "')"
        Cmd.CommandText = sql
        Cmd.Execute
    TS1 = MsgBox("恭喜你,您已经成功注册!")
   Else
     TS2 = MsgBox("两次密码不一致,请重新输入!")
   End If
End Sub

Private Sub Command2_Click()
     Text_Name.Text = ""
     Text_Pwd.Text = ""
     Text_rpwd.Text = ""
     DataCombo1.Text = ""
End Sub

Private Sub Form_Load()
  Height = 5200
  Width = 7000
  Left = 5000
  Top = 2700
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
   Select Case Button.Key
          Case "Exit"
            Unload Me
   End Select
End Sub

⌨️ 快捷键说明

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