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

📄 frmadduser.frm

📁  一个题库系统 可以按照试题的难度
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmAddUser 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "用户"
   ClientHeight    =   2604
   ClientLeft      =   36
   ClientTop       =   336
   ClientWidth     =   3312
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   10.8
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmAddUser.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2604
   ScaleWidth      =   3312
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2424
      Left            =   72
      TabIndex        =   0
      Top             =   72
      Width           =   3156
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   396
         Left            =   1488
         TabIndex        =   6
         Top             =   1452
         Width           =   876
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   396
         Left            =   456
         TabIndex        =   5
         Top             =   1440
         Width           =   876
      End
      Begin VB.TextBox Text2 
         Height          =   324
         Left            =   1092
         TabIndex        =   3
         Top             =   792
         Width           =   1596
      End
      Begin VB.TextBox Text1 
         Height          =   324
         Left            =   1080
         TabIndex        =   1
         Top             =   372
         Width           =   1596
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "密    码"
         Height          =   216
         Left            =   144
         TabIndex        =   4
         Top             =   852
         Width           =   864
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "用 户 名"
         Height          =   216
         Left            =   132
         TabIndex        =   2
         Top             =   432
         Width           =   864
      End
   End
End
Attribute VB_Name = "frmAddUser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public user As String
Public pwd As String

Private Sub Command1_Click()
    If Text1.Text = "" Then
        MsgMsg "用户名不能为空!"
        Exit Sub
    End If
    If Text2.Text = "" Then
        MsgMsg "用户密码不能为空!"
        Exit Sub
    End If
    
    user = Text1.Text
    pwd = GetHash(Text2.Text)
    Unload Me
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    Text1.Text = user
    Text2.Text = pwd
End Sub

⌨️ 快捷键说明

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