سؤال

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?

هل كانت مفيدة؟

المحلول

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"]]

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top