27.Add the following AddRecordToDataSetprocedure to the form. This
person from GoogleOn Error GoTo handleerror Create a Google Search objectDim Search As New Google.GoogleSearchServiceDim strLicense As StringDim strSearchText As StringDim intStart As IntegerDim intMaxResults As Integer clear the current google barlnklblGoogleResults.Links.Clear() lnklblGoogleResults.Text = set the values to pass to the Google web servicestrLicense = YOUR KEY GOES HERE specify the search criteria for the google searchIf txtCompany.Text <> Then if a company is present, search on that valuestrSearchText = txtCompany.TextElse if a company is not present, search on the contact namestrSearchText = txtFName.Text & & txtLName.TextEnd IfintStart = 0intMaxResults = 5 execute the doGoogleSearch method (i.e. run the Google Search) Dim SearchResult As Google.GoogleSearchResult = _ Search.doGoogleSearch(strLicense, strSearchText, _ intStart, intMaxResults, False, , False, , , ) if no results were returned then exitIf SearchResult.resultElements Is Nothing Then Exit SubDim result As Google.ResultElementintStart = 0Dim strTitle As StringDim strSnippet As String display the google results on the formFor Each result In SearchResult.resultElements first, retrieve the title and snippet and strip out the bold and break HTML tagsstrTitle = Replace(result.title, , ) strTitle = Replace(strTitle, , ) strTitle = Replace(strTitle,
, )
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services