我爱Aspx >> VB.Net >> 使用VB.NET实现 Google Web ServiceCStr(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
【我对这篇文章有话说?】
通过WMI获得硬盘和CPU的物理序列..[05-20]
Visual Basic.NET(将文本文件导入..[05-20]
VB.NET启动外部程序[05-20]
如何用VB.NET编写XML文档[05-20]
持续集成 .Net手册[05-20]
VB.NET编程之托盘程序篇[05-20]
浅析.NET下XML数据访问新机制[05-20]
VB.NET轻松实现任务栏程序[05-20]
VB.NET轻松操作注册表[05-20]
VB.NET操作 SQL SERVER的 二进制..[05-20]
通过WMI获得硬盘和CPU的物理序列..[05-20]
Visual Basic.NET(将文本文件导入..[05-20]
让你的VB程序支持多国语言的切换[05-20]
VB.NET启动外部程序[05-20]
用VB6.0自制压缩与解压缩程序(一..[05-20]
用VB6.0自制压缩与解压缩程序(二..[05-20]
用VB6.0自制压缩与解压缩程序(三..[05-20]
如何用VB.NET编写XML文档[05-20]
持续集成 .Net手册[05-20]
VB.NET编程之托盘程序篇[05-20]