Thread: Text->Contains and Select

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

    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 06: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, 05:49 PM
  2. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  3. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04: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, 08:48 PM