VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "数据过虑"
   ClientHeight    =   1005
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   1005
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Alignment       =   2  'Center
      BackColor       =   &H00C0C0C0&
      Height          =   495
      Left            =   240
      Locked          =   -1  'True
      TabIndex        =   2
      Text            =   "输入数字"
      Top             =   360
      Width           =   1215
   End
   Begin VB.TextBox Text3 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3120
      Locked          =   -1  'True
      TabIndex        =   1
      Top             =   360
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1680
      TabIndex        =   0
      Top             =   360
      Width           =   1095
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Text2_LostFocus()
    Dim i As Integer
    If IsNumeric(Text2) Then
      Text3.Text = "正确!!"
    Else
      Text2.Text = ""           '清除输入文本框中的内容
      Text2.SetFocus            '控制权重新回到输入文本框
      Text3.Text = "错误,再输入!!"   '在显示文本框显示有关
   End If
End Sub
