VERSION 5.00
Begin VB.Form Form2 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Form2"
   ClientHeight    =   1140
   ClientLeft      =   3690
   ClientTop       =   2835
   ClientWidth     =   3765
   ControlBox      =   0   'False
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1140
   ScaleWidth      =   3765
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command2 
      Caption         =   "放弃"
      Height          =   435
      Left            =   1920
      TabIndex        =   3
      Top             =   600
      Width           =   1545
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查找下一项"
      Height          =   435
      Left            =   150
      TabIndex        =   2
      Top             =   600
      Width           =   1545
   End
   Begin VB.TextBox Text1 
      Height          =   435
      Left            =   1260
      TabIndex        =   0
      Top             =   60
      Width           =   2235
   End
   Begin VB.Label Label1 
      Caption         =   "查找内容"
      Height          =   315
      Left            =   210
      TabIndex        =   1
      Top             =   180
      Width           =   1005
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    Static i
    i = InStr(i + 1, Form1.Text1, Text1)
    If i > 0 Then
        Form1.Text1.SelStart = i - 1
        Form1.Text1.SelLength = Len(Text1)
        Form1.Text1.SetFocus
    Else
        MsgBox "查找结束"
    End If
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub
