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

📄 login.frm

📁 是有关于音像制品的管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form login 
   Appearance      =   0  'Flat
   BackColor       =   &H00FFC0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "系统登陆"
   ClientHeight    =   2610
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5715
   DrawStyle       =   6  'Inside Solid
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "login.frx":0000
   ScaleHeight     =   2610
   ScaleWidth      =   5715
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton zhuce 
      Caption         =   "注册"
      Height          =   375
      Left            =   1200
      TabIndex        =   7
      Top             =   1920
      Width           =   975
   End
   Begin VB.CommandButton loginCancel 
      Appearance      =   0  'Flat
      Caption         =   "取 消"
      Height          =   375
      Left            =   3360
      TabIndex        =   5
      Top             =   1920
      Width           =   975
   End
   Begin VB.CommandButton loginOK 
      Appearance      =   0  'Flat
      BackColor       =   &H00FFC0C0&
      Caption         =   "确 定"
      Height          =   375
      Left            =   2280
      TabIndex        =   4
      Top             =   1920
      Width           =   975
   End
   Begin VB.TextBox pwd 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2160
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1320
      Width           =   1695
   End
   Begin VB.TextBox id 
      Height          =   375
      Left            =   2160
      TabIndex        =   2
      Top             =   840
      Width           =   1695
   End
   Begin VB.Label Label3 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "音像制品管理系统"
      BeginProperty Font 
         Name            =   "华文彩云"
         Size            =   24
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   495
      Left            =   840
      TabIndex        =   6
      Top             =   120
      Width           =   4095
   End
   Begin VB.Label Label2 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "密  码"
      Height          =   255
      Left            =   1440
      TabIndex        =   1
      Top             =   1320
      Width           =   615
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "用户名"
      Height          =   255
      Left            =   1440
      TabIndex        =   0
      Top             =   960
      Width           =   615
   End
End
Attribute VB_Name = "login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim pwdcount As Integer

Private Sub loginCancel_Click()
    End
End Sub

Private Sub loginOK_Click()
  
 Dim sql As String
 Dim rs As ADODB.Recordset
 If Trim(id.Text = "") Then
   MsgBox "没有输入用户名称,请重新输入!", vbOKOnly + vbExclamation, "警告"
   readerName.SetFocus
 Else
   sql = "select * from readers where readerName='" & id.Text & "'"
   Set rs = TransactSQL(sql)
   If iflag = 1 Then
     If rs.EOF = True Then
       MsgBox "没有这个用户,重新输入!", vbOKOnly + vbExclamation, "警告"
       id.SetFocus
     Else
       If Trim(rs.Fields(2)) = Trim(pwd.Text) Then
         rs.Close
         Me.Hide
         readerName = Trim(id.Text)
         mainFrm.Show
         Unload Me
       Else
         MsgBox "密码错误,重新输入!", vbOKOnly + vbExclamation, "警告"
         pwd.SetFocus
         pwd.Text = ""
       End If
     End If
   Else
     Unload Me
   End If
 End If
 pwdcount = pwdcount + 1
 If pwdcount = 3 Then
   MsgBox "错误输入已达3次,系统退出!", vbOKOnly + vbExclamation, "警告"
   Unload Me
   Exit Sub
 End If
  
End Sub

Private Sub Form_Load()
  pwdcount = 0
End Sub

Private Sub zhuce_Click()
     readerInfo.Show
End Sub

⌨️ 快捷键说明

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