www.pudn.com > SkyMediaSongTool.rar > Form5.frm


VERSION 5.00 
Begin VB.Form Form5  
   BorderStyle     =   1  'Fixed Single 
   Caption         =   "ÃÜÂë:" 
   ClientHeight    =   1710 
   ClientLeft      =   45 
   ClientTop       =   330 
   ClientWidth     =   4470 
   Icon            =   "Form5.frx":0000 
   LinkTopic       =   "Form5" 
   LockControls    =   -1  'True 
   MaxButton       =   0   'False 
   MinButton       =   0   'False 
   ScaleHeight     =   1710 
   ScaleWidth      =   4470 
   ShowInTaskbar   =   0   'False 
   StartUpPosition =   2  'ÆÁÄ»ÖÐÐÄ 
   Begin VB.CommandButton Command1  
      Caption         =   "OK" 
      Default         =   -1  'True 
      Height          =   375 
      Left            =   765 
      TabIndex        =   1 
      Top             =   885 
      Width           =   3000 
   End 
   Begin VB.TextBox Text1  
      Height          =   270 
      IMEMode         =   3  'DISABLE 
      Left            =   750 
      PasswordChar    =   "#" 
      TabIndex        =   0 
      Top             =   495 
      Width           =   2985 
   End 
End 
Attribute VB_Name = "Form5" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
Dim p(6) As String 
 
Private Sub Command1_Click() 
    tmppsw = "" 
    For i = 0 To 5 
        tmppsw = tmppsw + p(i) 
    Next 
    If Text1.Text = tmppsw Then 
        Me.Visible = False 
        Form1.Show 
    Else 
        End 
    End If 
End Sub 
 
Private Sub Form_Load() 
    p(0) = "1" 
    p(1) = "5" 
    p(2) = "9" 
    p(3) = "7" 
    p(4) = "5" 
    p(5) = "3" 
End Sub 
 
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) 
    tmppsw = "" 
    For i = 0 To 5 
        tmppsw = tmppsw + p(i) 
    Next 
    If Text1.Text = tmppsw Then 
        Me.Visible = False 
        Form1.Show 
    Else 
        End 
    End If 
End Sub