Results 1 to 3 of 3

Thread: Help me

  1. #1

    Thread Starter
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    How do I Search a word within a richtextbox?(like a spell checker)
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  2. #2
    Guest
    You could use the Instr function.

    Code:
    Private Sub Command1_Click()
    If InStr(RichTextBox1, "Text") Then
    MsgBox "string found"
    Else
    MsgBox "string not found"
    End If
    End Sub
    Or you can use it's Find function.

    Code:
    Private Sub Command1_Click()
    RichTextBox1.Find "Text"
    RichTextBox1.SetFocus
    End Sub

  3. #3

    Thread Starter
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217

    thanx

    thanx ill try that
    Remember, if someone's post was not helpful, you can always rate their post negatively .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width