Domanda

Sorry for my bad English.
I need to add a google search to my c# windows application therefore I added a textbox and a button to my form when user click on button application sends search query to google. As you have seen google has a very good auto complete for its search textbox. Is there any way for adding that auto complete to my application?

È stato utile?

Soluzione

Yes, you can query the URL:

http://suggestqueries.google.com/complete/search?client=firefox&q=YOURQUERY

For example, http://suggestqueries.google.com/complete/search?client=firefox&q=justin will return:

["justin",["justin bieber","justin timberlake","justin tv","justin timberlake tour","justin boots","justin blackmon","justin baldoni","justin bieber twitter","justin long","justin moore"]]

Altri suggerimenti

There is a AutoComplete property for TextBox.
For the implementation, you can check the following link

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top