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

📄 comeprogfrm.frm

📁 guan yu pai ke xi tong de ruan jian
💻 FRM
字号:
VERSION 5.00
Begin VB.Form ComeProg 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "[排课助手]用户登陆"
   ClientHeight    =   1485
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3300
   Icon            =   "ComeProgFrm.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1485
   ScaleWidth      =   3300
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command1 
      Caption         =   "取 消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   1
      Left            =   2280
      TabIndex        =   5
      Top             =   1080
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "登 陆"
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   0
      Left            =   1200
      TabIndex        =   4
      Top             =   1080
      Width           =   975
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   405
      IMEMode         =   3  'DISABLE
      Index           =   1
      Left            =   1200
      PasswordChar    =   "*"
      TabIndex        =   3
      ToolTipText     =   "第一次登陆密码为空。"
      Top             =   600
      Width           =   2055
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   405
      Index           =   0
      Left            =   1200
      Locked          =   -1  'True
      TabIndex        =   1
      ToolTipText     =   "第一次登陆用户名为空。"
      Top             =   120
      Width           =   2055
   End
   Begin VB.Label Label1 
      Caption         =   "密  码:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   1
      Left            =   120
      TabIndex        =   2
      Top             =   720
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "用户名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   0
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   1095
   End
End
Attribute VB_Name = "ComeProg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'此函数已经调试通过。
'此函数需要函数如下:
'GetString
Option Explicit
Private Sub Command1_Click(Index As Integer)
    Select Case Index
    Case 0:
        If GetString(HKEY_CURRENT_USER, LOGON_REG_PATH, "PassWord") = Text1(1).Text Then
            PassWord = True
            Unload Me
        Else
            If MsgBox("密码错误!" & Chr(13) & "如果没有正确登陆,一些功能将不可用!" & Chr(13) & "要重新进行登陆吗?", vbYesNo + vbDefaultButton1, "登陆...") = vbYes Then
                Text1(1).SetFocus
                Exit Sub
            Else
                PassWord = False
                Unload Me
            End If
        End If
    Case 1:
        Unload Me
    End Select
End Sub
Private Sub Form_Activate()
    Me.Left = (Screen.Width - Me.Width) / 2
    Me.Top = (Screen.Height - Me.Height) / 2
    Text1(0).Text = GetString(HKEY_CURRENT_USER, LOGON_REG_PATH, "UserName")
    Text1(1).SetFocus
End Sub
Private Sub Form_Load()
    Me.Caption = App.ProductName & "    <用户登陆>"
End Sub

⌨️ 快捷键说明

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