---
title: "how to achieve similar Google search bar functionality   in C #"  
description: "how to achieve similar Google search bar functionality   in C #"  
author: "Kenny Tangnde"  
published: 2011-10-02  
updated: 2011-10-04  
canonical: https://www.mindstick.com/forum/315/how-to-achieve-similar-google-search-bar-functionality-in-c  
category: "c#"  
tags: ["c#"]  
reading_time: 3 minutes  

---

# how to achieve similar Google search bar functionality   in C #

Hi all,

how to achieve similar [Google search](https://www.mindstick.com/articles/12393/google-search-adds-new-personal-tab-to-showcase-only-your-content-results) bar [functionality](https://www.mindstick.com/blog/136/using-watermark-functionality-in-textbox-by-jquery) in C #,and Included in the [search bar](https://www.mindstick.com/news/1265/snapchat-controls-friend-suggestions-for-teen-accounts-reveals-measures-to-combat-drug-spread) displays the first [ten](https://answers.mindstick.com/qa/103981/what-is-the-ten-commandments) [results](https://yourviews.mindstick.com/story/4497/usage-of-baking-soda-magical-results).

If you [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) the corresponding results and the [implementation](https://www.mindstick.com/forum/33764/how-to-implementation-of-class-in-c-sharp) of the corresponding event.

thanks in advance.\

## Replies

### Reply by Kenny Tangnde

Thank you for your help.

### Reply by Anonymous User

Hi Aken,

Could you please clear one more thing that you want to perform it in windows application or in web application?

\
Well if you want to perform it in windows application then you need to write some code on textchange event of textbox control or better you can use combobox also.

or if you want to perform it in webapplication then you need to follow concept of ajax.

Thanks.

### Reply by Kenny Tangnde

Hi all,

Perhaps my question is not detailed enough, I want to achieve when the user in text input data,in the database to retrieve the value of the text box(contain to retrieve the value of the text box ).

Thanks.

### Reply by Anonymous User

Hi Aken,

Maybe I did not understand your question properly. But whatever I understand, you want to display top 10 result from [google](https://www.mindstick.com/articles/43833/google-lighthouse-and-how-is-it-changing-the-way-we-development-and-design-websites) [search](https://www.mindstick.com/articles/65368/best-smo-services-company-in-hyderabad-improve-search-rankings) in your application. For performing this task I am giving some links to you which might be useful for you.

http://answers.oreilly.com/topic/2165-how-to-search-google-and-bing-in-c/

[http://msdn.microsoft.com/en-us/library/system.net.webclient%28VS.80%29.aspx](http://msdn.microsoft.com/en-us/library/system.net.webclient(VS.80).aspx)

Thanks.

### Reply by Chris Anderson

Hi aken,\
\
I had put the dot after the url that's why this type of error occured.Check by removing dot or check this\
\
http://www.codeproject.com/KB/aspnet/Search_SuggestTextBox.aspx \
\
Thanks.

### Reply by Kenny Tangnde

hi Rohit,

you provide the address,The following error occurred:

Server Error in '/' Application.\
--------------------------------------------------------------------------------

The resource cannot be found. \
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /KB/aspnet/Search_SuggestTextBox.aspx.

thanks.

### Reply by Kenny Tangnde

Hi Rohit Kesharwani,

thanks for your help.

There is also a problem:How use relative path in C#.

con = new OleDbConnection(@"provider=microsoft.jet.oledb.4.0;data scource=C:\MyProject\Product.mdb");

Now, I want to change the path to relative path,In order to the client correctly use.

thanks very much.

### Reply by Chris Anderson

Hello aken,\
\
Check this link http://www.codeproject.com/KB/aspnet/Search_SuggestTextBox.aspx \
I think this will help you.


---

Original Source: https://www.mindstick.com/forum/315/how-to-achieve-similar-google-search-bar-functionality-in-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
