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

📄 frminputbox.frm

📁 本需求规格说明书是为了开发《飞机订票系统》而编写的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmIBNU 
   BackColor       =   &H00404040&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "请输入密码"
   ClientHeight    =   1950
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   7605
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1950
   ScaleWidth      =   7605
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   345
      Left            =   6480
      TabIndex        =   3
      Top             =   840
      Width           =   975
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确 定"
      Default         =   -1  'True
      Height          =   345
      Left            =   6480
      TabIndex        =   2
      Top             =   240
      Width           =   975
   End
   Begin VB.TextBox txt 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   120
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1560
      Width           =   7335
   End
   Begin VB.Label lbl 
      AutoSize        =   -1  'True
      BackColor       =   &H00404040&
      Caption         =   "请输入密码!(密码不得长于12位)"
      ForeColor       =   &H00FFFFFF&
      Height          =   180
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   2880
   End
End
Attribute VB_Name = "frmIBNU"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    '判断用户密码输入的正确性↓
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    If txt.Text = "" Then
        MsgBox "密码不能为空!"
        Exit Sub
    End If
    If Len(txt.Text) > 12 Then
        MsgBox "密码不能长于12位!"
        Exit Sub
    End If
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    '如果用户输入正确,则新建用户
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Call LinkDB(landWay, SName, "weboy", SUName, SUPw)
    con.Open
    con.Execute "insert users values('" & frmNewUser.txt.Text & "','" & txt.Text & "','" & frmNewUser.cmb.Text & "')"
    con.Close
    MsgBox "用户新建成功!"
    Unload Me
    Unload frmNewUser
End Sub

Private Sub Form_Load()

End Sub

⌨️ 快捷键说明

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