HomeClick here for more advertising information!
Latest Forum Posts
[Pic] This looks like the kid from "... by chconline
posted 42 minutes ago, with 0 replies.

Newegg coming to Canada by shc-boomer
posted 6 hours and 17 minutes ago, with 1 replies.

Acer Aspireone by shc-boomer
posted 8 hours and 48 minutes ago, with 14 replies.

CoD4 Multiplayer by shc-boomer
posted 9 hours and 23 minutes ago, with 48 replies.

Post your computer + accessories photos by shc-boomer
posted 9 hours and 38 minutes ago, with 907 replies.

CoD4 PS3 on HDTV by lukerman
posted 14 hours and 53 minutes ago, with 11 replies.

[Funny Video] Yo Gabba Gabba Tummy Song ... by Mindovermaster
posted 21 hours and 30 minutes ago, with 1 replies.

[Newegg] Hard Drive Extravaganza (Free S... by Mindovermaster
posted 1 day and 5 hours ago, with 3 replies.

FAQ : how to convert dvd and video to zu... by chconline
posted 1 day and 6 hours ago, with 2 replies.

FAQ : how to rip DVD and convert Video t... by Agent47
posted 1 day and 19 hours ago, with 4 replies.


Forum Login

Forum Login | Register

Click here to login only if you are using specific APH Main facilities (Forum and APH Main accounts are separate). Otherwise, register or login to our forums using links provided above.


Support APH Networks

Running APH Networks requires lots of time and money. (Please see our 2008 Monthly Budget.) If you appreciate our hard work and want to support us financially, any amount you donate is greatly appreciated for us to continue! Click here for more info.


Who's online
There are currently 2 users and 1970 guests online.

Tutorials | Making a Basic Browser Using VB6

Tutorials | Making a Basic Browser Using VB6
Submitted by chconline on Saturday, October 8, 2005 - 07:25 Tutorials

Author: Lord Nikon
Date: October 8, 2005

Visual Basic is the most popular and most widely used programming language, basically because it's so easy and has design mechanisms. In this tutorial I will explain how to make a simple browser.

Start up VB6 and make a Standard EXE and click CTRL+T and in the components window's control tab scroll down to select Microsoft Internet Controls and check it. Press OK.

Now in the toolbar there should be new icon like below:

Click on it and make a control on the form as big as you want. Then these controls:
Control name
text box txturl
command button cmdgo
command button cmdback
command button cmdforward
command button cmdrefresh

So it should like this when you run it:

Double click on the command "Go" and add this code:

Private Sub cmdgo_Click()
WebBrowser1.Navigate (txturl.Text)
End Sub

This will make the browser navigate to the address the user entered in txturl. Simple enough.

Click on the the cmdback button and add this code:

Private Sub cmdback_Click()
WebBrowser1.GoBack
End Sub

Click on the Forward button and add this code:

Private Sub cmdforward_Click()
WebBrowser1.GoForward
End Sub

This is self explanitory.

Click on the cmdrefresh button and add this code:

Private Sub Command3_Click()
WebBrowser1.Refresh
End Sub

Also self explanitory.

Now you can do more complex things with the browser: Like making a button go to a certain URL, you would add this code:

Private Sub cmdgoogle_Click()
WebBrowser1.Navigate ("http://aphnetworks.com")
End Sub

This will make the browser navigate to aphnetworks.com.

Note to use Wndows Internet Control you need shdocvw.dll in the system32 folder, but most computers come with it. If you don't see it in the components list, download it from a website.


Poll




Sponsored Ads





:: Copyright 1998-2008 APH Networks. :: Copyright | Privacy Policy ::
This site is best viewed when your monitor's resolution is set to 1024x768 or higher.
Currently running on APH.CMS.