find a word in a textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raghulvarma
    New Member
    • Oct 2007
    • 90

    find a word in a textbox

    I have two textboxes one contains a set of words and the property of that textbox is set to multipleline and the other one is the place where the user will have to type the word to be searched.
    Once the word to be searched is typed and the button is pressed ,if the particular word is found in the textbox then it has to be highlighted else a msgbox has to be displayed stating that no word is found how to do that?

    thanx in advance
    raghul
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    1. You need to read the entire content into a string variable.
    2. Findout of the second word exists or not.
    3. If exists findou the position and the length of the word and highlight using these two values.

    Comment

    Working...