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

  • 作者:aspxer  来源:internet  日期:2007-5-20 13:57:30  关键字:.net,web,google
  • 请将下列代码输入到Google 搜索按钮(btn_Search)的单击事件中:

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

    ByVal e As System.EventArgs) Handles btn_Search.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 Google.GoogleSearchResult

    @# Please Type your license key here

    MyLicenseKey = "tGCTJkYos3YItLYzI9Hg5quBRY8bGqiM"

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

    MyResult = MyService.doGoogleSearch(MyLicenseKey, _

    txtSearch.Text, 0, 1, False, "", False, "", "", "")

    @# output the total Results found

    lbl_TotalFound.Text = "Total Found : " & _

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