• 您的位置我爱Aspx >> VB.Net >> 使用VB.NET实现 Google Web Service
  • 使用VB.NET实现 Google Web Service

  • 作者:aspxer  来源:internet  日期:2007-5-20 13:57:30  关键字:.net,web,google
  • CStr(MyResult.estimatedTotalResultsCount)

    End Sub

    请将下列代码输入到拼写检查按钮(btn_CheckSpelling)的单击事件中:

    Private Sub btn_CheckSpelling_Click(ByVal sender As System.Object, _

    ByVal e As System.EventArgs) Handles btn_CheckSpelling.Click

    Dim MyLicenseKey As String @# Variable to Store the License Key

    @# Declare variable for the Google search service

    Dim MyService As Google.GoogleSearchService = New _

    Google.GoogleSearchService()

    @# Declare variable for the Google Search Result

    Dim MyResult As String

    @# Please Type your license key here

    MyLicenseKey = "tGCTJkYos3YItLYzI9Hg5quBRY8bGqiM"

    @# Execute Google search on the text enter and license key

    MyResult = MyService.doSpellingSuggestion(MyLicenseKey, _

    txt_CheckSpelling.Text)

    @# output the Results

    lbl_CorrectSpelling.Text = "Did you Mean : " & MyResult

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:用vb编一个计算器,需要用到数组,看看下面的代码,欢迎来找碴!
    下一篇:通过WMI获得硬盘和CPU的物理序列号(VB.net)