• We just launched and are currently in beta. Join us as we build and grow the community.

Google Searcher in VB.NET

SebaazECU

Shonen Battle Strategist
S Rep
0
0
0
Rep
0
S Vouches
0
0
0
Vouches
0
Posts
147
Likes
195
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 400 XP
This is a tutorial in which we will create a program that will input a word using vb.net and it will search in Google. We all know that Google is the biggest search engine, so that's why we will going to use this site.

Now, let's start this tutorial!

1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application.

2. Next, add only one Button named btnSearch and labeled it as "Search Text in Google". Insert also a TextBox named txtInput as your input for you to search a text. You must design your interface like this:

gsearch.png


3. In your btnSearch, copy this code below.
  1. Private

    Sub

    btnSearch_Click(

    ByVal

    sender As

    System.

    Object

    , ByVal

    e As

    System.

    EventArgs

    )

    Handles

    btnSearch.

    Click
  2. Process.

    Start

    (

    "firefox"

    , "https://www.google.com.ph/#q="

    +

    txtInput.

    Text

    )
  3. End

    Sub

We used the Process.Start Method to access resources to start for the specified system process. Here, we used to have two String parameters for us to start. First, we have set to start an application called "firefox", a mozilla firefox browser. That is an application that we have opened. Next is the string "https://www.google.com.ph/#q=", it means that this line of text triggers to open this site after starting mozilla firefox application. We add the txtInput textbox here as our inputted text. This is why the inputted text is searched with Google using Mozilla Firefox browser.

Output:

gsearchoutput_0.png


Best Regards,

Engr. Lyndon R. Bermoy

IT Instructor/System Developer/Android Developer/Freelance Programmer

If you have some queries, feel free to contact the number or e-mail below.
Mobile: 09488225971
Landline: 826-9296
E-mail:[email protected]

Add and Follow me on Facebook: https://www.facebook.com/donzzsky

Visit and like my page on Facebook at: https://www.facebook.com/BermzISware


Download
You must upgrade your account or reply in the thread to view the hidden content.
 

452,496

333,651

333,659

Top