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

📄 logon.frm

📁 是本人自己完成的图书管理系统供大家参考
💻 FRM
字号:
VERSION 5.00
Begin VB.Form logon 
   Caption         =   "登陆"
   ClientHeight    =   4485
   ClientLeft      =   3645
   ClientTop       =   2925
   ClientWidth     =   6885
   LinkTopic       =   "Form1"
   ScaleHeight     =   4485
   ScaleWidth      =   6885
   Begin VB.TextBox password_txt 
      BeginProperty Font 
         Name            =   "Lucida Sans Unicode"
         Size            =   18
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      IMEMode         =   3  'DISABLE
      Left            =   3135
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   2520
      Width           =   2500
   End
   Begin VB.TextBox user_name_txt 
      BeginProperty Font 
         Name            =   "Lucida Sans Unicode"
         Size            =   18
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3135
      TabIndex        =   2
      Top             =   1800
      Width           =   2500
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   14.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1665
      TabIndex        =   1
      Top             =   3480
      Width           =   1575
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   14.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3585
      TabIndex        =   0
      Top             =   3480
      Width           =   1575
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "图书馆管理系统"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   42
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1095
      Left            =   480
      TabIndex        =   6
      Top             =   480
      Width           =   6000
   End
   Begin VB.Label Label3 
      Caption         =   "密  码"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   21.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1185
      TabIndex        =   5
      Top             =   2520
      Width           =   1575
   End
   Begin VB.Label Label2 
      Caption         =   "用户名"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   21.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1185
      TabIndex        =   4
      Top             =   1800
      Width           =   1575
   End
End
Attribute VB_Name = "logon"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()

If user_name_txt.Text = "tushuguan" And password_txt.Text = "tushuguan" Then
    main.Show
    logon.Hide
Else
    MsgBox "您输入的密码和用户名不符,请重新输入!", vbOKOnly
End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub password_txt_Change()

If password_txt = "tushuguan" Then
    Command1.SetFocus
End If

End Sub

⌨️ 快捷键说明

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