home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmFindPart
- BorderStyle = 3 'Fixed Dialog
- Caption = "Search Application Captions"
- ClientHeight = 1425
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 4875
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1830
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 1425
- ScaleWidth = 4875
- Top = 1140
- Width = 4995
- Begin VB.CommandButton Command1
- Caption = "&Activate"
- Default = -1 'True
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 330
- Left = 3510
- TabIndex = 4
- Top = 900
- Width = 1095
- End
- Begin VB.OptionButton Option1
- Caption = "&Contains"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Index = 1
- Left = 1845
- TabIndex = 3
- Top = 945
- Width = 1455
- End
- Begin VB.OptionButton Option1
- Caption = "&Starts With"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Index = 0
- Left = 270
- TabIndex = 2
- Top = 945
- Value = -1 'True
- Width = 1455
- End
- Begin VB.TextBox Text1
- Height = 330
- Left = 270
- TabIndex = 1
- Text = "Text1"
- Top = 450
- Width = 4335
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- AutoSize = -1 'True
- Caption = "Partial Window &Title:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 270
- TabIndex = 0
- Top = 180
- Width = 1455
- End
- Attribute VB_Name = "frmFindPart"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- ' *********************************************************************
- ' Copyright
- 1995-97 Karl E. Peterson, All Rights Reserved
- ' *********************************************************************
- ' You are free to use this code within your own applications, but you
- ' are expressly forbidden from selling or otherwise distributing this
- ' source code without prior written consent.
- ' *********************************************************************
- Option Explicit
- Private Sub Command1_Click()
- Const optStartsWith = 0
- Const optContains = 1
- ' Search using method user chose.
- If Option1(optStartsWith) Then
- AppActivatePartial Trim(Text1), FWP_STARTSWITH
- ElseIf Option1(optContains) Then
- AppActivatePartial Trim(Text1), FWP_CONTAINS
- End If
- End Sub
- Private Sub Form_Load()
- Text1 = ""
- End Sub
-