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

📄 frmlockup.vb

📁 师生情况管理系统
💻 VB
字号:
'************************************************************
'Copyright(c) 2007 长沙南方职业学院 信息系 软件2-061班
'All rights reserved
'
'程序名称:学校基本信息管理系统
'
'作者(原):易湘陵
'完成日期:2007-11-13
'作者(改):
'修改日期:
'************************************************************
Public Class FrmLockUp
    Inherits System.Windows.Forms.Form

#Region " Windows 窗体设计器生成的代码 "

    Public Sub New(ByVal Pw As String)
        MyBase.New()
        Pword = Pw
        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents BtnOpen As System.Windows.Forms.Button
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents TxtPassWord As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(FrmLockUp))
        Me.BtnOpen = New System.Windows.Forms.Button
        Me.Label1 = New System.Windows.Forms.Label
        Me.TxtPassWord = New System.Windows.Forms.TextBox
        Me.SuspendLayout()
        '
        'BtnOpen
        '
        Me.BtnOpen.Location = New System.Drawing.Point(240, 46)
        Me.BtnOpen.Name = "BtnOpen"
        Me.BtnOpen.TabIndex = 0
        Me.BtnOpen.Text = "解锁"
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(8, 16)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(296, 23)
        Me.Label1.TabIndex = 1
        Me.Label1.Text = "系统当前已被锁定,输入当前用户的登录密码解锁"
        '
        'TxtPassWord
        '
        Me.TxtPassWord.Location = New System.Drawing.Point(32, 48)
        Me.TxtPassWord.Name = "TxtPassWord"
        Me.TxtPassWord.PasswordChar = Microsoft.VisualBasic.ChrW(42)
        Me.TxtPassWord.Size = New System.Drawing.Size(192, 21)
        Me.TxtPassWord.TabIndex = 2
        Me.TxtPassWord.Text = ""
        '
        'FrmLockUp
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(352, 101)
        Me.Controls.Add(Me.TxtPassWord)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.BtnOpen)
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.Name = "FrmLockUp"
        Me.Text = "系统锁定中..."
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Pword As String

    Private Sub BtnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOpen.Click
        Me.Close()
    End Sub

    Private Sub FrmLockUp_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
        If TxtPassWord.Text.Trim = "" Then
            MsgBox("请输入解锁密码!", 64, "输入")
            e.Cancel = True
            Exit Sub
        End If

        If TxtPassWord.Text.Trim <> Pword Then
            MsgBox("输入的解锁密码错误!", 64, "错误")
            e.Cancel = True
            Exit Sub
        End If
    End Sub
End Class

⌨️ 快捷键说明

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