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

📄 form登录.frm

📁 自己做的简单的工资查询系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form登录 
   AutoRedraw      =   -1  'True
   Caption         =   "登录"
   ClientHeight    =   8220
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   11415
   LinkTopic       =   "Form1"
   Picture         =   "Form登录.frx":0000
   ScaleHeight     =   8220
   ScaleWidth      =   11415
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame1 
      BackColor       =   &H8000000D&
      Height          =   2535
      Left            =   3840
      TabIndex        =   0
      Top             =   1920
      Width           =   5775
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   615
         Left            =   3000
         TabIndex        =   4
         Top             =   1680
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   615
         Left            =   840
         TabIndex        =   3
         Top             =   1680
         Width           =   1575
      End
      Begin VB.TextBox Text2 
         BackColor       =   &H80000004&
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   13.5
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   2400
         PasswordChar    =   "*"
         TabIndex        =   2
         Text            =   "053"
         ToolTipText     =   "默认密码053"
         Top             =   900
         Width           =   2055
      End
      Begin VB.ComboBox Combo1 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFC0C0&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         ItemData        =   "Form登录.frx":2031B
         Left            =   2400
         List            =   "Form登录.frx":20322
         Style           =   2  'Dropdown List
         TabIndex        =   1
         ToolTipText     =   "默认用户名Admin"
         Top             =   240
         Width           =   2055
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "管理员"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Index           =   2
         Left            =   1320
         TabIndex        =   6
         Top             =   300
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "密 码:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Index           =   1
         Left            =   1320
         TabIndex        =   5
         Top             =   900
         Width           =   840
      End
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "企业工资管理系统"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   4080
      TabIndex        =   7
      Top             =   480
      Width           =   5055
   End
   Begin VB.Image Image1 
      Height          =   11520
      Left            =   -3960
      Picture         =   "Form登录.frx":2032B
      Stretch         =   -1  'True
      Top             =   -3120
      Width           =   15360
   End
End
Attribute VB_Name = "Form登录"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim sql As String
Dim pwdcount As Integer
If Trim(Combo1) = "" Then
MsgBox "没有输入用户名称", vbOKOnly + vbExclamation, "警告"
Combo1.SetFocus
ElseIf Trim(Combo1) <> "053" Or Trim(Text2) <> "053" Then
MsgBox "没有这个用户或者密码不正确,请重新输入!", vbOKOnly + vbExclamation, "警告"
Else
Form2.Show
End If
pwdcount = pwdcount + 1
If pwdcount = 3 Then
Unload Me
End If
End Sub

Private Sub Command2_Click()
sl = MsgBox("确认退出登录系统!", vbOKCancel + vbExclamation, "注意")
If sl = 1 Then
Unload Me
End If
End Sub

⌨️ 快捷键说明

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