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

📄 fmpwd.frm

📁 个人财务管理系统 可以记录你每一天的详细支出 让你很方便了解你这个月的支出 对于我们这些刚毕业的大学生节约用钱很有好处 大家有什么意见很问题可以发到我邮箱 qiu.yin@163.com
💻 FRM
字号:
VERSION 5.00
Begin VB.Form fmPwd 
   BackColor       =   &H00000000&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "请输入密码"
   ClientHeight    =   690
   ClientLeft      =   45
   ClientTop       =   405
   ClientWidth     =   5490
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   690
   ScaleWidth      =   5490
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton cmdOk 
      Caption         =   "确  定"
      Height          =   300
      Left            =   4680
      TabIndex        =   2
      Top             =   180
      Width           =   735
   End
   Begin VB.TextBox txtPwd 
      Appearance      =   0  'Flat
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   840
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   195
      Width           =   3615
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackColor       =   &H00000000&
      Caption         =   "密  码:"
      ForeColor       =   &H0000FF00&
      Height          =   180
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   630
   End
End
Attribute VB_Name = "fmPwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim m_ulType As Integer         '卸载类型

Private Sub cmdOk_Click()
    If Len(txtPwd.Text) = 0 Then
        MsgBox "请输入密码"
        Exit Sub
    End If
    
    If CheckLogin(g_nUserID, txtPwd.Text) Then
        Load fmMain
        m_ulType = 2
        Unload Me
        fmMain.Show
    Else
        MsgBox "密码输入不正确"
    End If
End Sub


Private Sub Form_Load()
    m_ulType = 1
End Sub

Private Sub Form_Unload(Cancel As Integer)
    If m_ulType = 1 Then
        Load fmSelect
        fmSelect.Show
    End If
End Sub

Private Sub txtPwd_KeyPress(KeyAscii As Integer)
    If KeyAscii = 27 Then
        Load fmSelect
        m_ulType = 1
        Unload Me
        fmSelect.Show
    End If
    
    If KeyAscii = 13 Then
        cmdOk_Click
    End If
End Sub

⌨️ 快捷键说明

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