Text->Contains and Select

This is a discussion on Text->Contains and Select within the C# Programming forums, part of the General Programming Boards category; Is it possible to use ->Contains to Select "how" in the textBox if this word was found or is there ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    383

    Text->Contains and Select

    Is it possible to use ->Contains to Select "how" in the textBox if this word was found or
    is there anyway to search for a word in a textBox and Select this word if this word is found ?

    Code:
    String^ str = "how";
    
    if (richtextBox1->Text->Contains(str))
    {
        MessageBox:: Show("found how");
       //Try to select this word
    }
    Last edited by Coding; 03-21-2008 at 07:05 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  2. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 05:42 PM
  3. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 05:42 PM
  4. API func to select the text in an edit control?
    By Sebastiani in forum Windows Programming
    Replies: 11
    Last Post: 06-26-2002, 09:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21