1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Search Box in Visual Basic

Discussion in 'Visual Basic ( VB )' started by bunnyali2011, Mar 22, 2011.

  1. bunnyali2011

    bunnyali2011 New Member

    Joined:
    Mar 20, 2011
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    0
    Now, imagine there is search box (textbox), and below there are a search button with a rich text box.

    My text file located in the drive C is like this:

    Product: Cement Size: Big: Cost: 245 Type: Construction
    Product: Iron Size: Big Cost: 123 Type: Consruction
    Product: Glass Size: Small Cost: 23 Type: Non-Construction
    Product: Chocolate Size: Small Cost: 10 Type: Food

    I want to search only two types of items in my text file located in drive C, namely: Construction and Non-construction. When the user will type a product name, OR size, OR whatever, he must get results only for the Construction or Non-construction. The user must not get results for the Food. And the user can make misspelling of words in the search, so the Search box must tackle it. And yes, the results should appear on the rich text box on the form itself.

    My questions are:


    1/ What is the code of doing the Search according the criteria above?
    2/ What is the code to put the results on the rich text box?

    Thank you!
     
  2. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0

Share This Page