Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

ST.

JOHN TECHNOLOGICAL COLLEGE OF THE PHILIPPINES


29 Jewel St. Forest Hills Subd., Brgy. Gulod, Novaliches, Quezon City

Engineering Department
AY 2012-2013
SUMMER

Visual Basic 2010 Objectives: To be able to 1. how to create a simple web browser 2. how to create a simple web browser and a more advanced web browser.

Creating a Simple Web Browser


Browser a type of program used to browse the World Wide Web Gopher a primitive Internet browsing program Netscape Navigator replaced Gopher Internet Explorer a default browser that shipped with newer versions of Windows Mozilla FireFox Opera Chrome created by Google Procedure 1. start a new project in VB2010 and name it with webbrowser 2. Change the name of Form1 to webbrowser and the text property to My First Web Browser and set its size property to 640,480. 3. Add a WebBrowser control, located in the Toolbox on the left side (so that your web browser can connect to the Internet) and set its size property to 600,400. 4. Drag a text box and place it at the bottom of the WebBrowser control (this will be the address bar where the user can enter the URL). 5. Place a command button beside the text box and label it as Go. 6. Double click on the Go button and key in the following code: Code for Web Browser 7. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click myWebBrowser.Navigate (TextBox1.Text) End Sub End Class 8. Run the program, type in any URL, click the Go button and browse any web page you want.

Mm_sjtcp2011@yc

T3AY12-13, C5_Page 1

You might also like