form8.frm

来自「一个商业软件的源码」· FRM 代码 · 共 113 行

FRM
113
字号
VERSION 5.00
Object = "{69958DD9-23E5-11D6-ACD7-0050BAC05F28}#12.0#0"; "CurtButton.ocx"
Begin VB.Form Form8 
   Caption         =   "请输入用户密码"
   ClientHeight    =   1305
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   3255
   Icon            =   "Form8.frx":0000
   LinkTopic       =   "Form8"
   ScaleHeight     =   1305
   ScaleWidth      =   3255
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame2 
      BackColor       =   &H00FFC0FF&
      Height          =   615
      Left            =   0
      TabIndex        =   3
      Top             =   720
      Width           =   3255
      Begin CurtButton多风格按钮控件.CurtButton CurtButton1 
         Height          =   255
         Left            =   1920
         TabIndex        =   4
         Top             =   240
         Width           =   1095
         _ExtentX        =   1931
         _ExtentY        =   450
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Picture         =   "Form8.frx":08CA
         Caption         =   "登录(&OK)"
      End
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFC0FF&
      Height          =   735
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   3255
      Begin VB.TextBox Text1 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   720
         PasswordChar    =   "*"
         TabIndex        =   0
         Top             =   240
         Width           =   2295
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "口令"
         Height          =   375
         Left            =   120
         TabIndex        =   2
         Top             =   240
         Width           =   975
      End
   End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CurtButton1_Click()



If Text1.Text = USEPASSWORD Then

Form4.CKS = False
Form4.WindowState = 0
Unload Me
Else
MsgBox "您的密码有误!"
'Form4.WindowState = 1
Text1.Text = ""
End If
End Sub

Private Sub CurtButton2_Click()

cnnado.Close
End


End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
If Text1.Text = USEPASSWORD Then

Form4.CKS = False
Form4.WindowState = 0

Unload Me
Else
MsgBox "您的密码有误!"
'Form4.WindowState = 1
Text1.Text = ""
End If
End If
End Sub

⌨️ 快捷键说明

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