Google Searcher in VB.NET

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: output 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: output 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

Add new comment