<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>PROGRAMMER DESK &#187; Google</title>
	<atom:link href="http://vinayhatwal.wordpress.com/category/new-stuffs/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinayhatwal.wordpress.com</link>
	<description>Accept Changes To Develop Good Solutions</description>
	<lastBuildDate>Sun, 02 Aug 2009 10:34:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vinayhatwal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/fddfa1cd68a112c3fb6eca04033658e3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>PROGRAMMER DESK &#187; Google</title>
		<link>http://vinayhatwal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vinayhatwal.wordpress.com/osd.xml" title="PROGRAMMER DESK" />
		<item>
		<title>Embed Google Search in Your Custom Applications</title>
		<link>http://vinayhatwal.wordpress.com/2009/07/03/embed-google-search-in-your-custom-applications/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/07/03/embed-google-search-in-your-custom-applications/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 05:36:05 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[Embed Google Search in Your Custom]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google APIs]]></category>
		<category><![CDATA[Google Search]]></category>
		<category><![CDATA[Vinayhatwal]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=153</guid>
		<description><![CDATA[Embed Google Search in Your Custom Applications
Written by – Vinay Hatwal
Dt. 03-Jul-2009
 
Dear all,
This time I came with the topic “Embed Google Search in Your Custom Applications”. With this we can embed Google search in our application. First of all I will discuss the tools which you need to install on your PC to use the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&blog=4320862&post=153&subd=vinayhatwal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="center"><strong>Embed Google Search in Your Custom Applications</strong></p>
<p align="center">Written by – Vinay Hatwal</p>
<p align="center">Dt. 03-Jul-2009</p>
<p align="center"> </p>
<p>Dear all,</p>
<p>This time I came with the topic “Embed Google Search in Your Custom Applications”. With this we can embed Google search in our application. First of all I will discuss the tools which you need to install on your PC to use the Google Search</p>
<p> </p>
<ul>
<li>.Net Framework 3.5</li>
<li>Google Search API for .NET 0.2  (<a href="http://google-api-for-dotnet.googlecode.com/files/GoogleSearchAPI_0.2.zip">GoogleSearchAPI_0.2.zip</a>)</li>
<li>GoogleSearchAPI_0.2.zip</li>
<li>GoogleSearchAPI.dll</li>
</ul>
<p> </p>
<p> </p>
<p><strong><span style="text-decoration:underline;">Steps to do</span></strong></p>
<p> </p>
<p><strong>1)      Create a new project with vb.Net 2.0 or 3.5.(Windows Application)</strong></p>
<p><strong>2)      Add Reference of GoogleSearchAPI.dll</strong></p>
<p><strong>3)      Add following controls</strong></p>
<ol>
<li>RichTextBox  &#8211; RichTextBox1</li>
<li>Label- Label1</li>
<li>TextBox- TextBox1         </li>
<li>Button- Button1</li>
</ol>
<p><strong>4)      Your Interface will look like</strong></p>
<p><img class="aligncenter size-full wp-image-154" title="inter1" src="http://vinayhatwal.files.wordpress.com/2009/07/inter1.jpg?w=490&#038;h=261" alt="inter1" width="490" height="261" /></p>
<p> </p>
<p><strong>5)      Add the following coding in your Form1.cs file</strong></p>
<p> </p>
<p> </p>
<p> </p>
<p>Public Class Form1</p>
<p>    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p>
<p>        &#8216;Declaring Generic IList for IWebResult Interface</p>
<p>        &#8216;You can use -</p>
<p>        &#8216;1) IWebResult</p>
<p>        &#8216;2) IVideoResult</p>
<p>        &#8216;3) INewsResult</p>
<p>        &#8216;4) INewsResult</p>
<p>        &#8216;5) IImageResult</p>
<p>        &#8216; AND MORE</p>
<p>        Dim results As IList(Of Google.API.Search.IWebResult)</p>
<p> </p>
<p>        &#8216;Taking result</p>
<p>        &#8216;calling of Google.API.Search.GwebSearcher.Search(search text, Number of search result would be returned at a time)</p>
<p>        results = Google.API.Search.GwebSearcher.Search(TextBox1.Text, 10)</p>
<p>        Dim str As String = &#8220;&#8221;</p>
<p>        RichTextBox1.Text = &#8220;&#8221;</p>
<p>        For Each r As Google.API.Search.IWebResult In results</p>
<p>            &#8216;Fetching Title</p>
<p>            str = str &amp; &#8220;Title :&#8221; &amp; r.Title &amp; vbCrLf</p>
<p>            &#8216;Fetching URL</p>
<p>            str = str &amp; &#8220;URL :&#8221; &amp; r.Url &amp; vbCrLf</p>
<p>            &#8216;Fetching VisibleUrl</p>
<p>            str = str &amp; &#8220;VisibleUrl :&#8221; &amp; r.VisibleUrl &amp; vbCrLf</p>
<p>            &#8216;Fetching Content</p>
<p>            str = str &amp; &#8220;Content :&#8221; &amp; r.Content &amp; vbCrLf</p>
<p>            str = str &amp; &#8220;=========================================================================================&#8221; &amp; vbCrLf</p>
<p>        Next</p>
<p>        RichTextBox1.Text = str</p>
<p>    End Sub</p>
<p>End Class</p>
<p> </p>
<p> </p>
<p><strong>6)      Now Enter the text to search on text box and click on Go. The result will look like –</strong></p>
<p><img class="aligncenter size-full wp-image-155" title="Search Result" src="http://vinayhatwal.files.wordpress.com/2009/07/inter2.jpg?w=854&#038;h=438" alt="Search Result" width="854" height="438" /></p>
Posted in Embed Google Search in Your Custom Tagged: Google, Google APIs, Google Search, Vinayhatwal <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&blog=4320862&post=153&subd=vinayhatwal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/07/03/embed-google-search-in-your-custom-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/07/inter1.jpg" medium="image">
			<media:title type="html">inter1</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/07/inter2.jpg" medium="image">
			<media:title type="html">Search Result</media:title>
		</media:content>
	</item>
	</channel>
</rss>