home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmFind
- BorderStyle = 3 'Fixed Dialog
- Caption = "Find"
- ClientHeight = 1305
- ClientLeft = 2655
- ClientTop = 3585
- ClientWidth = 4950
- BeginProperty Font
- Name = "Times New Roman"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Icon = "find.frx":0000
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1305
- ScaleWidth = 4950
- Begin VB.Frame Frame1
- Caption = "Direction"
- Height = 612
- Left = 1560
- TabIndex = 3
- Top = 600
- Width = 2052
- Begin VB.OptionButton optDirection
- Caption = "&Down"
- Height = 252
- Index = 1
- Left = 960
- TabIndex = 5
- ToolTipText = "Search to End of Document"
- Top = 240
- Value = -1 'True
- Width = 852
- End
- Begin VB.OptionButton optDirection
- Caption = "&Up"
- Height = 252
- Index = 0
- Left = 240
- TabIndex = 4
- ToolTipText = "Search to Beginning of Document"
- Top = 240
- Width = 612
- End
- End
- Begin VB.CheckBox chkCase
- Caption = "Match &Case"
- Height = 495
- Left = 120
- TabIndex = 2
- ToolTipText = "Case Sensitivity"
- Top = 720
- Width = 1335
- End
- Begin VB.TextBox Text1
- Height = 375
- Left = 1200
- TabIndex = 1
- ToolTipText = "Text to Find"
- Top = 120
- Width = 2415
- End
- Begin VB.CommandButton cmdcancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 372
- Left = 3720
- TabIndex = 7
- ToolTipText = "Return to Notepad"
- Top = 600
- Width = 1092
- End
- Begin VB.CommandButton cmdFind
- Caption = "&Find"
- Default = -1 'True
- Height = 372
- Left = 3720
- TabIndex = 6
- ToolTipText = "Start Search"
- Top = 120
- Width = 1092
- End
- Begin VB.Label Label1
- Caption = "Fi&nd What:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 975
- End
- Attribute VB_Name = "frmFind"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub chkCase_Click()
- gFindCase = chkCase.Value
- End Sub
- Private Sub cmdCancel_Click()
- gFindString = Text1.Text
- gFindCase = chkCase.Value
- Unload frmFind
- End Sub
- Private Sub cmdFind_Click()
- gFindString = Text1.Text
- FindIt
- End Sub
- Private Sub Form_Load()
- cmdFind.Enabled = False
- optDirection(gFindDirection).Value = 1
- End Sub
- Private Sub optDirection_Click(index As Integer)
- gFindDirection = index
- End Sub
- Private Sub Text1_Change()
- gFirstTime = True
- If Text1.Text = "" Then
- cmdFind.Enabled = False
- cmdFind.Enabled = True
- End If
- End Sub
-