frmlockscreen.vb

来自「网吧系统管理」· VB 代码 · 共 111 行

VB
111
字号
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/07/23
'描    述:网吧计费管理系统客户端/服务器端
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Public Class FrmLockScreen
    Inherits System.Windows.Forms.Form

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

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

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

    End Sub

    '窗体重写处置以清理组件列表。
    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 Label2 As System.Windows.Forms.Label
    Friend WithEvents TxtPwd As System.Windows.Forms.TextBox
    Friend WithEvents BtOK As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.Label2 = New System.Windows.Forms.Label
        Me.BtOK = New System.Windows.Forms.Button
        Me.TxtPwd = New System.Windows.Forms.TextBox
        Me.SuspendLayout()
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(12, 9)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(80, 32)
        Me.Label2.TabIndex = 1
        Me.Label2.Text = "请输入密码:"
        '
        'BtOK
        '
        Me.BtOK.Location = New System.Drawing.Point(80, 67)
        Me.BtOK.Name = "BtOK"
        Me.BtOK.Size = New System.Drawing.Size(72, 23)
        Me.BtOK.TabIndex = 2
        Me.BtOK.Text = "确定"
        '
        'TxtPwd
        '
        Me.TxtPwd.Location = New System.Drawing.Point(10, 30)
        Me.TxtPwd.Name = "TxtPwd"
        Me.TxtPwd.PasswordChar = Global.Microsoft.VisualBasic.ChrW(42)
        Me.TxtPwd.Size = New System.Drawing.Size(153, 21)
        Me.TxtPwd.TabIndex = 5
        '
        'FrmLockScreen
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(170, 99)
        Me.ControlBox = False
        Me.Controls.Add(Me.TxtPwd)
        Me.Controls.Add(Me.BtOK)
        Me.Controls.Add(Me.Label2)
        Me.MaximizeBox = False
        Me.Name = "FrmLockScreen"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "锁定屏幕"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

#End Region



    Private Sub BtOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtOK.Click
        If Trim(TxtPwd.Text) <> NewSuperUser.Password Then
            MsgBox("输入密码错误!", MsgBoxStyle.Exclamation, "信息框")
            TxtPwd.Text = ""
            TxtPwd.Focus()
        Else
            Me.Close()
        End If
    End Sub



End Class

⌨️ 快捷键说明

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