home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form FindDialog
- BorderStyle = 3 'Fixed Dialog
- Caption = "Find"
- ClientHeight = 2580
- ClientLeft = 2760
- ClientTop = 3750
- ClientWidth = 6030
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2580
- ScaleWidth = 6030
- ShowInTaskbar = 0 'False
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 420
- Left = 2880
- TabIndex = 0
- Top = 480
- Width = 2655
- End
- Begin VB.CommandButton CancelButton
- Caption = "Cancel"
- Height = 375
- Left = 2880
- TabIndex = 2
- Top = 1440
- Width = 1215
- End
- Begin VB.CommandButton OKButton
- Caption = "OK"
- Height = 375
- Left = 1320
- TabIndex = 1
- Top = 1440
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Search For"
- Height = 375
- Left = 1320
- TabIndex = 3
- Top = 480
- Width = 1215
- End
- Attribute VB_Name = "FindDialog"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public SearchText As String
- Private Sub CancelButton_Click()
- SearchText = ""
- Me.Hide
- End Sub
- Private Sub Form_Load()
- SearchText = ""
- End Sub
- Private Sub OKButton_Click()
- SearchText = Text1.Text
- Me.Hide
- End Sub
- Private Sub Text1_KeyPress(KeyAscii As Integer)
- If KeyAscii = 13 Then
- SearchText = Text1.Text
- Me.Hide
- End If
- End Sub
-