home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form ReplaceDialog
- BorderStyle = 3 'Fixed Dialog
- Caption = "Replace"
- ClientHeight = 3195
- ClientLeft = 2760
- ClientTop = 3750
- ClientWidth = 4485
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3195
- ScaleWidth = 4485
- ShowInTaskbar = 0 'False
- Begin VB.TextBox Text2
- 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 = 1560
- TabIndex = 1
- Top = 1320
- Width = 2535
- End
- 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 = 1560
- TabIndex = 0
- Top = 480
- Width = 2535
- End
- Begin VB.CommandButton CancelButton
- Caption = "Cancel"
- Height = 375
- Left = 2520
- TabIndex = 3
- Top = 2160
- Width = 1215
- End
- Begin VB.CommandButton OKButton
- Caption = "OK"
- Height = 375
- Left = 720
- TabIndex = 2
- Top = 2160
- Width = 1215
- End
- Begin VB.Label Label2
- Caption = "Replace with"
- Height = 375
- Left = 120
- TabIndex = 5
- Top = 1440
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Search For"
- Height = 495
- Left = 120
- TabIndex = 4
- Top = 600
- Width = 1335
- End
- Attribute VB_Name = "ReplaceDialog"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public SearchText As String, ReplaceText As String
- Private Sub CancelButton_Click()
- SearchText = ""
- ReplaceText = ""
- Me.Hide
- End Sub
- Private Sub Form_Load()
- SearchText = ""
- ReplaceText = ""
- End Sub
- Private Sub OKButton_Click()
- SearchText = Text1.Text
- ReplaceText = Text2.Text
- Me.Hide
- End Sub
- Private Sub Text1_KeyPress(KeyAscii As Integer)
- If KeyAscii = 13 Then
- Text2.SetFocus
- End If
- End Sub
- Private Sub Text2_KeyPress(KeyAscii As Integer)
- If KeyAscii = 13 Then
- SearchText = Text1.Text
- ReplaceText = Text2.Text
- Me.Hide
- End If
- End Sub
-