[ acky.net logo ]
Home > Tutorials > Visual Basic > Create Your Own Web Browser

Create Your Own Web Browser - (Step 3)
by Sang Nguyen - LAST EDITED: Monday, April 16, 2001 4:09 AM


The Coding!

Now that you've finished the user interface for your web browser, comes the hard part, you have to write codes for your browser to function properly.

Open the code for your web browser form and follow the following steps.

In the cmdBack_Click() event, put in this code:
 wweb.GoBack  
the GoBack method makes the web browser control to go back to the previous page.

In the cmdForward_Click() event, put in this code:
 wWeb.GoForward
The GoForward method makes the web browser control to go forward to another page.

In the cmdStop_Click() event, put in this code:
 wWeb.Stop
The Stop method makes the web browser control stop whatever it's doing.

In the cmdHome_Click() event, put in this code:
 wWeb.GoHome
The Home method makes your web browser control navigate back to the webpage that you set as home in the Internet Explorer Option. 

In the cboURL_KeyDown() event, put in this code
 If KeyCode = vbKeyReturn Then
    wWeb.Navigate cboURL.Text
 End If

That code will make the web browser control navigate to the URL you that you specified in the cboURL whenever you press the return key while typing in the combo box.

Click Here to go to Step 4 »

Jump To:


Email This Page To A Friend

Last updated: Monday, November 27, 2006 - 11:02 AM Eastern Daylight Time
Legal | Privacy Statement | Problems & Questions | Advertise | Link to us
© 1997-2007, All Rights Reserved.


Dedicated Server Provided by HighSpeedHosting