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

📄 frmadd.frm

📁 一个图书馆的VB做的mis系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmadd 
   Caption         =   "系统用户增加"
   ClientHeight    =   2910
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4470
   LinkTopic       =   "Form1"
   Picture         =   "frmadd.frx":0000
   ScaleHeight     =   2910
   ScaleWidth      =   4470
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox Cmbtype 
      Height          =   300
      ItemData        =   "frmadd.frx":3B93
      Left            =   1080
      List            =   "frmadd.frx":3B9D
      TabIndex        =   9
      Text            =   "普通用户"
      Top             =   1080
      Width           =   1695
   End
   Begin VB.TextBox txtpwd 
      Height          =   270
      Left            =   1080
      TabIndex        =   4
      Top             =   2040
      Width           =   1695
   End
   Begin VB.TextBox txtrepwd 
      Height          =   270
      Left            =   1080
      TabIndex        =   3
      Top             =   2520
      Width           =   1695
   End
   Begin VB.CommandButton cmdok 
      BackColor       =   &H80000009&
      Caption         =   "提交"
      Height          =   375
      Left            =   3000
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1320
      Width           =   975
   End
   Begin VB.CommandButton cmdout 
      BackColor       =   &H80000009&
      Caption         =   "退出"
      Height          =   375
      Left            =   3000
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   2040
      Width           =   975
   End
   Begin VB.TextBox txtname 
      Height          =   270
      Left            =   1080
      TabIndex        =   0
      Top             =   1560
      Width           =   1695
   End
   Begin VB.Label lblname 
      BackStyle       =   0  'Transparent
      Caption         =   "姓名:"
      Height          =   375
      Left            =   600
      TabIndex        =   8
      Top             =   1560
      Width           =   855
   End
   Begin VB.Label lblpwd 
      BackStyle       =   0  'Transparent
      Caption         =   "密码:"
      Height          =   375
      Left            =   600
      TabIndex        =   7
      Top             =   2040
      Width           =   1095
   End
   Begin VB.Label lblrepwd 
      BackStyle       =   0  'Transparent
      Caption         =   "重复密码:"
      Height          =   375
      Left            =   240
      TabIndex        =   6
      Top             =   2520
      Width           =   855
   End
   Begin VB.Label lbltype 
      BackStyle       =   0  'Transparent
      Caption         =   "类别:"
      Height          =   375
      Left            =   600
      TabIndex        =   5
      Top             =   1080
      Width           =   1215
   End
End
Attribute VB_Name = "frmadd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdok_Click()


If txtname.Text = "" Or Cmbtype.Text = "" Or txtpwd.Text = "" _
  Or txtrepwd.Text = " " Then

  MsgBox "数据不完整", vbInformation + vbOKOnly, "用户注意"


ElseIf txtpwd <> txtrepwd Then

  MsgBox "密码不一致", vbInformation + vbOKOnly, "用户注意"


  txtpwd.SetFocus

Else

Call adminadd
 
End If
End Sub

Private Sub cmdout_Click()
Unload Me
main_form.Show
End Sub

Private Sub Form_Load()

txtpwd.PasswordChar = "*"
txtrepwd.PasswordChar = "*"

'txtname.SetFocus
End Sub

⌨️ 快捷键说明

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