Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   Search Box in Visual Basic (http://www.go4expert.com/forums/search-box-visual-basic-t25318/)

bunnyali2011 22Mar2011 13:49

Search Box in Visual Basic
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!

virxen 9Apr2011 04:04

Re: Search Box in Visual Basic
use the split method to determine the type of the product


if the product has the desired type add it into the rich text box


All times are GMT +5.5. The time now is 17:40.