 |
28-02-2008, 10:14 AM
|
#1 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2007
Posts: 32
|
Make Your Own Web Browser In Visual Basic
Do you want to like make my own web browser Fast & easy to use, Here are the Tutorial about Make Your Own Web Browser. This will make in Visual Basic.
Step 1.
Open Visual Basic, and Press CTRL+T or go to the Project Menu -> Components. When the Components dialog pops-up scroll down to the Microsoft Internet Controls in the Controls section, select it and press OK.

If you did the step above correctly, you should see a new icon on your Toolbox:

Step 2
In this step, you would need to add the following controls to the form:
• 4 command buttons and name them: cmdBack, cmdForward, cmdStop & cmdHome
• 1 label control and name it: lbCaption
• 1 combobox control and name it: cboURL
• The webbrowser control you've just added, and name it: wWeb
Your form will now look something like this:

You've just finished the basic interface for your web browser application. Remember, you can always go beyond this by using the Toolbar control to make it look nicer!
Step 3
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.
Step 4
Congratulations!
You've now created your very own web browser. Tune in for the next edition of the Web Browser control tutorial for information on how to add a progress bar, status text, and advanced controlling of the web browser control.
If you would like to try download a ready version of this tutorial please click here.
Reply Please!
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
28-02-2008, 10:59 AM
|
#2 (permalink)
|
|
Dreamweaver
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
|
Re: Make Your Own Web Browser In Visual Basic
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore
Follow me on twitter.com/gigacore
|
|
|
28-02-2008, 11:51 AM
|
#3 (permalink)
|
|
Alpha Geek
Join Date: Jun 2007
Location: Bangalore
Posts: 785
|
Re: Make Your Own Web Browser In Visual Basic
Nice tutorial though I haven't read it.
__________________
++
|
|
|
28-02-2008, 12:32 PM
|
#4 (permalink)
|
|
Elevating Humanity
Join Date: Sep 2007
Location: Now on Earth
Posts: 1,957
|
Re: Make Your Own Web Browser In Visual Basic
Nice tut
__________________
Regards,
The Conqueror
|
|
|
28-02-2008, 04:19 PM
|
#5 (permalink)
|
|
In The Zone
Join Date: Sep 2007
Posts: 360
|
Re: Make Your Own Web Browser In Visual Basic
definately i'll try... Hop the browser will works
__________________
Evil Lives 4ever......
|
|
|
28-02-2008, 04:38 PM
|
#6 (permalink)
|
|
The Smaller Bang
Join Date: Sep 2007
Location: Gautham City
Posts: 7,492
|
Re: Make Your Own Web Browser In Visual Basic
this is not your own web browser. you are just using the IE engine using built in tools. This can be useful mainly for making simple all in one programs, for example by intergrating a WMP engine based media player widget, a Calendar, a simple text editor widget and a customised Internet Explorer engine based widget, you can make a single program that does all that most people look for in an internet parlour.
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
|
|
|
28-02-2008, 08:15 PM
|
#7 (permalink)
|
|
Mad and Furious
Join Date: May 2006
Location: Visual Basic 6.0
Posts: 453
|
Re: Make Your Own Web Browser In Visual Basic
^^+1
U said it...
This dosent make a new web-browser, but you are only integrating IE's web engine into your app.
This is used if you need an integrated browser in your application for any purpose...
|
|
|
28-02-2008, 08:29 PM
|
#8 (permalink)
|
|
Dreamweaver
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
|
Re: Make Your Own Web Browser In Visual Basic
its "Create a BASIC web browser from Visual Basic"
and what gautham said is true.
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore
Follow me on twitter.com/gigacore
|
|
|
28-02-2008, 08:50 PM
|
#9 (permalink)
|
|
The Smaller Bang
Join Date: Sep 2007
Location: Gautham City
Posts: 7,492
|
Re: Make Your Own Web Browser In Visual Basic
and one more thing: I would rather make this one from Visual C++ instead of Visual BASIC any day.
I have just got another idea: try to add a media player widget on a toolbar just beside or just below the buttons for navigation. Make the video window movable but always on top of the internet window. If nessassary, you can even make the toolbar(s) such that one half is the video window and the other half is full of all the controls. This way, you have your very own Songbird like program.
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
|
|
|
29-02-2008, 05:46 AM
|
#10 (permalink)
|
|
Fast 'N' Furious
Join Date: Jul 2006
Location: Geek's Heaven
Posts: 11,169
|
Re: Make Your Own Web Browser In Visual Basic
Very Interesting for me though I am not programmer
|
|
|
29-02-2008, 02:35 PM
|
#11 (permalink)
|
|
The Smaller Bang
Join Date: Sep 2007
Location: Gautham City
Posts: 7,492
|
Re: Make Your Own Web Browser In Visual Basic
did anyone succeed in creating Songbird Mini ? Its pretty simple. Just combine this tut with the one I will post if nobody is able to make Songbird mini in a few days.
PS: this is an open challenge to entertain our viewers
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
Last edited by MetalheadGautham; 29-02-2008 at 02:52 PM.
Reason: gigacore's advice
|
|
|
29-02-2008, 02:37 PM
|
#12 (permalink)
|
|
Dreamweaver
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
|
Re: Make Your Own Web Browser In Visual Basic
Advice: Don't point out a particular member.
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore
Follow me on twitter.com/gigacore
|
|
|
29-02-2008, 02:52 PM
|
#13 (permalink)
|
|
The Smaller Bang
Join Date: Sep 2007
Location: Gautham City
Posts: 7,492
|
Re: Make Your Own Web Browser In Visual Basic
Quote:
Originally Posted by Gigacore
Advice: Don't point out a particular member.
|
OK, edited. but this is not any member. its saurav, our friendly neighbourhood .net developer who writes ABOUT .net more than he writes ON .net.
so decided to ask him something.
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
|
|
|
29-02-2008, 02:55 PM
|
#14 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: Make Your Own Web Browser In Visual Basic
Quote:
Originally Posted by MetalheadGautham
OK, edited. but this is not any member. its saurav, our friendly neighbourhood .net developer who writes ABOUT .net more than he writes ON .net.
|
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
29-02-2008, 04:30 PM
|
#15 (permalink)
|
|
Cool as a CUCUMBAR ! ! !
Join Date: Dec 2003
Posts: 5,052
|
Re: Make Your Own Web Browser In Visual Basic
nice 1 ......
__________________
... W H O T ...
|
|
|
29-02-2008, 04:40 PM
|
#16 (permalink)
|
|
Guest
|
Re: Make Your Own Web Browser In Visual Basic
Quote:
Originally Posted by New
Nice tutorial though I haven't read it. 
|
lol
Nice tutorial..!!!
@Masroor
Include source from next time.
|
|
|
|
29-02-2008, 04:48 PM
|
#17 (permalink)
|
|
Dreamweaver
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
|
Re: Make Your Own Web Browser In Visual Basic
^ wow.. good vaibhav. u have learnt a lot after joining the forum. Before u didnt used to include the source, and now u are teaching others to include source. Good!
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore
Follow me on twitter.com/gigacore
|
|
|
29-02-2008, 04:54 PM
|
#18 (permalink)
|
|
Guest
|
Re: Make Your Own Web Browser In Visual Basic
I have said somewhere in this forum that i m learning from my mistake, i will not spam the forum anymore etc etc.
I must follow the rules if I want to be respected by other members..
One line of Gaganeed has influenced me a lot that:-
Quality is better than Quantity
by reading this i become a good user of this forum..!!!
|
|
|
|
29-02-2008, 09:48 PM
|
#19 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: Make Your Own Web Browser In Visual Basic
This trick is included in the MSDN documentation of VB...
Quote:
Originally Posted by MetalheadGautham
this is not your own web browser. you are just using the IE engine using built in tools. This can be useful mainly for making simple all in one programs, for example by intergrating a WMP engine based media player widget, a Calendar, a simple text editor widget and a customised Internet Explorer engine based widget, you can make a single program that does all that most people look for in an internet parlour.
|
^^rightly said
Last edited by adi007; 29-02-2008 at 09:48 PM.
Reason: Automerged Doublepost
|
|
|
01-03-2008, 02:03 AM
|
#20 (permalink)
|
|
.
Join Date: Jun 2007
Location: New Delhi
Posts: 8,936
|
Re: Make Your Own Web Browser In Visual Basic
Quote:
Originally Posted by vaibhavtek
I have said somewhere in this forum that i m learning from my mistake, i will not spam the forum anymore etc etc.
I must follow the rules if I want to be respected by other members..
One line of Gaganeed has influenced me a lot that:-
Quality is better than Quantity
by reading this i become a good user of this forum..!!!
|
Dude, type my name correctly...... 
The statment was: " Quantity never beats Quality" 
Anyways, its good that you've become contributing.....
@tutorial
A similar tutorial is in a VB6 book in our school library.... And I guess most VB books have this tutorial..... Thanx anyhow...
One thing I wanted to know is that can this be done in VB2008 Express?
__________________
.
Last edited by ico; 01-03-2008 at 02:09 AM.
|
|
|
01-03-2008, 03:23 AM
|
#21 (permalink)
|
|
Human Spambot
Join Date: Dec 2006
Posts: 2,798
|
Re: Make Your Own Web Browser In Visual Basic
you know what ! this was the first thing i ever made in VB , coz this was given in the VB 2005 tutorial, the very first program, its nothing more than using IE6 ... so dont think that a four line program is a tut, it would have been a tut if you would have shown some graphical change and acompletely new outlook !
thread closed as its unnecessary...
everyone can open VB2005 and see its help for this program, its the first one offered in the help itself...
thank you
Gangandeep: yeah it can be done ... its just like initializing IE6 or IE7 command tools into VB app.
Last edited by shantanu; 01-03-2008 at 03:23 AM.
Reason: Automerged Doublepost
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|