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

📄 frmlogin.frm

📁 金融机构用于银行承兑票台帐的登记以及统计打印各种报表
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmLogin 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "登录系统"
   ClientHeight    =   1635
   ClientLeft      =   4185
   ClientTop       =   3045
   ClientWidth     =   3780
   ControlBox      =   0   'False
   Icon            =   "frmLogin.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   966.01
   ScaleMode       =   0  'User
   ScaleWidth      =   3549.215
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2760
      Top             =   1440
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   $"frmLogin.frx":000C
      OLEDBString     =   $"frmLogin.frx":00B2
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from zyj"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   800
      Left            =   2040
      Top             =   2520
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "frmLogin.frx":0158
      Left            =   120
      List            =   "frmLogin.frx":0162
      TabIndex        =   4
      Text            =   "普通用户"
      Top             =   3120
      Width           =   1335
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "退出"
      Height          =   305
      Left            =   2400
      TabIndex        =   3
      Top             =   1080
      Width           =   1140
   End
   Begin VB.TextBox txtPassword 
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   2160
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   360
      Width           =   1275
   End
   Begin VB.Label Label2 
      Caption         =   "初始密码:123456"
      Height          =   255
      Left            =   1320
      TabIndex        =   6
      Top             =   720
      Width           =   2295
   End
   Begin VB.Image Image4 
      Height          =   480
      Left            =   3360
      Picture         =   "frmLogin.frx":017A
      Top             =   2520
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.Label Label1 
      Height          =   375
      Left            =   360
      TabIndex        =   5
      Top             =   1164
      Width           =   2055
   End
   Begin VB.Image Image3 
      Height          =   480
      Left            =   3840
      Picture         =   "frmLogin.frx":05BC
      Top             =   2520
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.Image Image2 
      Height          =   480
      Left            =   426
      Picture         =   "frmLogin.frx":09FE
      Top             =   240
      Width           =   480
   End
   Begin VB.Image Image1 
      Height          =   480
      Left            =   2760
      Picture         =   "frmLogin.frx":0E40
      Top             =   2520
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.Label lblLabels 
      Caption         =   "用户(&U):"
      Height          =   270
      Index           =   0
      Left            =   360
      TabIndex        =   0
      Top             =   2640
      Width           =   840
   End
   Begin VB.Label lblLabels 
      Caption         =   "密码(&P):"
      Height          =   270
      Index           =   1
      Left            =   1320
      TabIndex        =   1
      Top             =   411
      Width           =   840
   End
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub cmdCancel_Click()
End
Unload Me
End Sub

Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
KeyCode = 0
End Sub

Private Sub Combo1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub

Private Sub Form_Activate()
PTMM = Dialog.Text3
If Xiaohui = True Or Chongjian = True Then
Combo1.Text = "高级用户"
End If
End Sub

Private Sub Form_Load()
With Adodc1
.RecordSource = "select * from zyj"
.Refresh
记录数 = .Recordset.Fields(1).Value
版本状态 = .Recordset.Fields(2).Value
电脑编号 = .Recordset.Fields(3).Value
注册号 = .Recordset.Fields(4).Value
End With
End Sub

Private Sub Form_Unload(Cancel As Integer)
pword = ""
counter = 0
numberoftries = 0
txtPassword = ""
End Sub

Private Sub Timer1_Timer()
MDIForm1.Show
desktop.Top = 0
desktop.Left = 0
desktop.Height = MDIForm1.ScaleHeight
desktop.Width = MDIForm1.ScaleWidth
desktop.Show

Timer1.Enabled = False
Unload Me
End Sub

Private Sub Timer2_Timer()
End Sub

Private Sub txtPassword_KeyPress(KeyAscii As Integer)
Label1.Caption = ""
Static pword As String
Static counter As Integer
Static numberoftries As Integer
numberoftries = numberoftries + 1
counter = counter + 1
If counter >= 2 And counter <= 3 Then
Image2.Picture = Image3.Picture
ElseIf counter >= 5 And counter <= 6 Then
Image2.Picture = Image4.Picture
End If
pword = pword & Chr$(KeyAscii)
KeyAscii = 0
If numberoftries = 19 Then
End
End If
txtPassword.Text = String$(counter, "*")

If pword = PTMM Then
Image2 = Image1
txtPassword = ""
pword = ""
Label1.Caption = "口令正确,继续……"
Timer1.Enabled = True
'Jiuxiu '就绪
counter = 0
numberoftries = 0
Timer1.Enabled = True
ElseIf counter = 6 Then
counter = 0
pword = ""
txtPassword = ""
Label1.Caption = "口令不对,请重新输入"
End If

End Sub

⌨️ 快捷键说明

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