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

📄 frmlogon.frm

📁 创建一个用户登陆枢,如何用Visual.Basic来完成
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmLogon 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "输入用户名和口令"
   ClientHeight    =   4275
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6675
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   12
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4275
   ScaleWidth      =   6675
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   495
      Left            =   3960
      TabIndex        =   6
      Top             =   3240
      Width           =   1215
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Default         =   -1  'True
      Enabled         =   0   'False
      Height          =   495
      Left            =   1440
      TabIndex        =   5
      Top             =   3240
      Width           =   1215
   End
   Begin VB.TextBox txtPassword 
      Height          =   495
      IMEMode         =   3  'DISABLE
      Left            =   2520
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   2160
      Width           =   3495
   End
   Begin VB.TextBox txtUserName 
      Height          =   495
      Left            =   2520
      TabIndex        =   3
      Top             =   1200
      Width           =   3495
   End
   Begin VB.Image imgLogo 
      BorderStyle     =   1  'Fixed Single
      Height          =   540
      Left            =   360
      Picture         =   "frmLogon.frx":0000
      Top             =   240
      Width           =   540
   End
   Begin VB.Label lblPassword 
      Caption         =   "口令"
      Height          =   495
      Left            =   1200
      TabIndex        =   2
      Top             =   2280
      Width           =   1095
   End
   Begin VB.Label lblUserName 
      Caption         =   "用户"
      Height          =   495
      Left            =   1200
      TabIndex        =   1
      Top             =   1320
      Width           =   1095
   End
   Begin VB.Label lblInstruction 
      Caption         =   "请输入您的名字和口令:"
      Height          =   495
      Left            =   1320
      TabIndex        =   0
      Top             =   240
      Width           =   3735
   End
End
Attribute VB_Name = "frmLogon"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    End
End Sub

Private Sub cmdOK_Click()
    frmLogon.Hide
End Sub

Private Sub txtPassword_Change()
    If txtUserName.Text <> "" And txtPassword.Text <> "" Then
        cmdOK.Enabled = True
    Else
        cmdOK.Enabled = False
    End If
End Sub

Private Sub txtUserName_Change()
    If txtUserName.Text <> "" And txtPassword.Text <> "" Then
        cmdOK.Enabled = True
    Else
        cmdOK.Enabled = False
    End If
End Sub

⌨️ 快捷键说明

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