VERSION 5.00
Begin VB.Form Frmpw 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "密码检验"
   ClientHeight    =   1155
   ClientLeft      =   10050
   ClientTop       =   1335
   ClientWidth     =   3195
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1155
   ScaleWidth      =   3195
   Begin VB.CommandButton Cmdcancle 
      Caption         =   "取消"
      Height          =   375
      Left            =   2280
      TabIndex        =   3
      Top             =   600
      Width           =   735
   End
   Begin VB.CommandButton cmdok 
      Caption         =   "确定"
      Height          =   375
      Left            =   2280
      TabIndex        =   2
      Top             =   120
      Width           =   735
   End
   Begin VB.TextBox txtpw 
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   240
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   480
      Width           =   1815
   End
   Begin VB.Label Label1 
      Caption         =   "请输入密码："
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   120
      Width           =   1095
   End
End
Attribute VB_Name = "frmpw"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Rem 密码检验
Private Sub cmdok_Click()
  If txtpw.Text = "123456" Then
    MsgBox ("欢迎进入奥运知识系统！")
    
  Else
    MsgBox ("请输入正确的密码！")
    txtpw.Text = ""               '将密码输入的文本框清成空白
    txtpw.SetFocus                '焦点落在密码输入的文本框上
  End If
End Sub
Private Sub Cmdcancle_Click()
  Unload Me
  
End Sub
