private void searchButton_Click(object sender, System.EventArgs e)
        {
            // Create a Google Search object
            google_moniteur.GoogleSearchService s = new google_moniteur.GoogleSearchService();
            try {
                // Invoke the search method
                google_moniteur.GoogleSearchResult r = s.doGoogleSearch(keyBox.Text, searchBox.Text, 
                    0, 1, false, "", false, "", "", "");
                // Extract the estimated number of results for the search and display it
                int estResults = r.estimatedTotalResultsCount;
                searchResultLabel.Text = Convert.ToString(estResults);
            }
            catch (System.Web.Services.Protocols.SoapException ex) 
            {
                MessageBox.Show(ex.Message);
            }
        }
			
		
 
	
Partager