www.pudn.com > VBkongjian.rar > FrmPass.frm


VERSION 5.00 
Begin VB.Form FrmPass  
   BackColor       =   &H00404040& 
   BorderStyle     =   1  'Fixed Single 
   ClientHeight    =   1185 
   ClientLeft      =   15 
   ClientTop       =   15 
   ClientWidth     =   5580 
   ClipControls    =   0   'False 
   ControlBox      =   0   'False 
   LinkTopic       =   "Form1" 
   MaxButton       =   0   'False 
   MinButton       =   0   'False 
   ScaleHeight     =   1185 
   ScaleWidth      =   5580 
   StartUpPosition =   2  '屏幕中心 
   Begin VB.CommandButton Command1  
      BackColor       =   &H00FFFFFF& 
      Caption         =   "确定(&O)" 
      Default         =   -1  'True 
      Height          =   375 
      Left            =   1920 
      Style           =   1  'Graphical 
      TabIndex        =   1 
      Top             =   720 
      Width           =   1695 
   End 
   Begin VB.TextBox TPs  
      Height          =   270 
      IMEMode         =   3  'DISABLE 
      Left            =   120 
      PasswordChar    =   "*" 
      TabIndex        =   0 
      Top             =   360 
      Width           =   5295 
   End 
   Begin VB.Label Label2  
      BackStyle       =   0  'Transparent 
      Caption         =   "请输入授权密码:" 
      ForeColor       =   &H00FFFFFF& 
      Height          =   255 
      Left            =   120 
      TabIndex        =   2 
      Top             =   120 
      Width           =   4335 
   End 
End 
Attribute VB_Name = "FrmPass" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
Private Sub Command1_Click() 
    If TPs.Text = "llcyw13931137599" Then 
        CreateNewKey HKEY_LOCAL_MACHINE, "SOFTWARE\华盛软件工作室\NiceForm" 
        SetKeyValue HKEY_LOCAL_MACHINE, "SOFTWARE\华盛软件工作室\NiceForm", "Userkey", TPs.Text, REG_SZ 
        Unload Me 
    End If 
End Sub