Nov 21, 2009

Making A Web Browser With Visual Basic 6

free web hosting
Open Discussion & Free Web Hosting > General Discussion > Computer Talk

Making A Web Browser With Visual Basic 6

William Wood
Hi everyone!
I'm going to tell you how to make a very simple web browser with Microsoft Visual Basic 6.0. Its basically a customized version of Internet Explorer, though, so enjoy!

First of all, you need to start a new project, make a Standard EXE. Then click on the Project menu and select Components. Check Microsoft Internet Controls and click Apply.
From the Insert menu, click on the icon that has just appeared.
Drag it onto the program layout, but make sure you make the program big enough and leave a space at the top for all the web buttons.

Make a text box and drag it where you want it to go. Now make four command buttons which will be GO, REFRESH, BACK and FORWARD. Then name each of them Cmdback (BACK), CmdForward (FORWARD), CmdGo (GO), and CmdRefresh (REFRESH).

Now here is where you put in the codes.

On the BACK button, insert this code
----------------------------------------------------
Private Sub cmdback_Click()
WebBrowser1.GoBack
End Sub

----------------------------------------------------
This tells the browser to go Back.
On the FORWARD button, insert this code.
----------------------------------------------------
Private Sub Cmdforward_Click()
WebBrowser1.GoForward
End Sub

----------------------------------------------------
This tells the browser to go Forward.
On the GO button, insert this code.
----------------------------------------------------
Private Sub cmdgo_Click()
WebBrowser1.Navigate (Text1.Text)
End Sub

----------------------------------------------------
This tells the web browser to go to the page you want it to.
On the REFRESH button, insert this code.
----------------------------------------------------
Private Sub cmdrefresh_Click()
WebBrowser1.Refresh
End Sub

----------------------------------------------------
This tells the browser to refresh the page.
On the FORM1 insert this code.
----------------------------------------------------
Private Sub Form_Load()
WebBrowser1.Navigate ("http://www.google.com/")
End Sub

----------------------------------------------------
This makes your homepage, simply change http://www.google.com to the page you want, if otherwise.
On the WEBBROWSER1 insert this code.
----------------------------------------------------
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
Form1.Caption = (WebBrowser1.LocationName)
End Sub

----------------------------------------------------
It makes the URL name the header, and changes the address to the place you wish to go.
Thats all! Save your project, and enjoy your customized web browser! smile.gif

 

 

 


Comment/Reply (w/o sign-up)

Sten
i would try it if only i had visual basic
i have another program called browser bob which makes customized browsers based on internet explorer
its basically internet explorer but with your own look, u can make your own buttons, pictures, borders and boxes, stuff like that

Comment/Reply (w/o sign-up)

Jimmy89
If memory serves me right (and its been a long time), in VB6 there was a Web Browser template that could be used! It put in the browser control, status bars, menus etc etc. Which was good if you were adding simple browsers to your project!

I must say that I prefer the new browser control in VB.NET! It has many more options then the VB6 one did! Sten, if you want to try out VB, have a look at the Visual Studio Express Editions (search on this board, theres heaps of topics!). You can have a go of any of the .NET languages for free!

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : making, web, browser, visual, basic, 6

  1. What Is The Fastest Way To Click Icons For You (visual, Auditory, Or Kinesthetic)?
    Location and color for me (2)
  2. Help Me Make A Guide To Website Making!
    HELP! (8)
    I been wanting for a time now to make a guide to website making, i now i have have decided im going
    to, i will need colleagues, if anyone has medium knowledge in this area it would be nice if they
    could be the co-author (or probably the main as i am 10). CSS would be a VERY good thing to know as
    i am only reasonable in HTML/XHTML. all credit will be shared. P.S. you are probably thinking "this
    idiot is a newbie and hes only ten" please do not, i have been doing html for a while now and i
    really beleive i can do this, if you want i could even give you FULL credit for ALL ....
  3. Making Xp Starts 60% Faster
    Making your windows xp starts faster and avoid hang ups. (3)
    By the way this is not my post I have found it in my pc and I forgot the source of it. I'll just
    share it here.
    ----------------------------------------------------------------------------------------------------
    ------------------------- QUOTE Making Windows XP Start 60% Faster Stopping Unneeded Startup
    Services Along with the core operating system and programs that Windows XP runs when it starts,
    there is also a host of services involved. Many of these services are necessary for Windows XP to
    operate correctly. However, many of them are for features in Wind....
  4. How Can We Make Our On O/s ?
    The ways of making our own computer !! (3)
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> Now we are
    trying to compete with MICROSOFT WINDOWS ....... /wink.gif" style="vertical-align:middle"
    emoid=";)" border="0" alt="wink.gif" /> /wink.gif" style="vertical-align:middle" emoid=";)"
    border="0" alt="wink.gif" /> Plz write ur ideas of including in our O/S .... NAMES -
    SUGGESSTONS--LOGOS--STARTING....
  5. Can Anyone Help Me In Making A Online Text Base Game..
    (2)
    can anyone help me in making a online text base game??? i want to make an online text based game
    .......... i want to know how to make an server n to maintain it..... currently i m using apache
    tomcat.....
  6. Swift Browser
    Windows webkit based browser! (19)
    I just made a search for a KHTML based browser on Windows OS and found one project which wasn't
    updated since 2004 to port KHTML to Windows, but through Wikipedia I found Swift, the current
    version is 0.2, I just downloaded it and tested and was amazed, that it shows the pages very well,
    even sometimes they break and the GUI itself needs to be updated, what you want, it is version 0.2!
    For all the web designers and people using Windows it is a good practice to see how their pages look
    in Safari and Konqueror, due to Swift is based on Webkit, Safari on MacOS and Webki....
  7. My Game I Am Making (blockbash)
    (6)
    Link to download it is here: http://www.megaupload.com/?d=ETIQMCTE It's MegaUpload.com, it
    is a zip archive that contains an executable and a DATA\MAPS folders with the level data. This is
    just a simple little 2d game I am making for fun in Borland Delphi 7 (Win32) with the UnDelphiX (for
    DirectX). I'd just like a little feedback on it and if anyone has any bugs or problems with it
    thus far. I do all this on my own (sound effects, the basic graphics and animations /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> etc),....
  8. Web Browser And Taskbar Problems (web Browser Disappears)
    Question about web browsers and taskbar (8)
    First off, I would like to say thanks for taking the time to read my thread... Er then I won't
    have a second or any others, I will just get to my questions. Okay, so I recently noticed that my
    web browser windows when I minimized them to the task bar just disappeared. They seemingly minimzed
    to a spot that I couldn't see to the down and right of the start button. I know how to get
    around this in a couple of ways if I have to... But I was just curious to see if anyone knew how to
    fix it a better way? My "solutions" to fix it are: 1) If I hit ALT+TAB at the s....
  9. Boot Up In Dos: Making A Boot Up Disk
    (5)
    Always wanted to know how to get in DOS, before windows xp is started up? Here a short list: Go to
    www.bootdisk.com, and download the files you need. Copy paste them on an empty disk, and ready is
    your DOS boot disk /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Now
    you have one thing to do, before it works, When your computer is booting, press del, when it says
    "press del to enter setup" or something like that. Now find the "boot sequence", and put with page
    up/page down A: first in line. Now it boots from your disk straight to DOS. This....
  10. My Carpc In The Making
    (0)
    Hey there, I am not an expert at anything, but I figure I share my project with everybody online and
    hopefully other enthuist would reply and feedbacks and inputs... A small form factor, but also want
    more power than what a fanless unit can provide, I've put together this snazzy combination: -
    Morex 3688 Its a nice little case for my CarPC... that way it doesn't take too much space in my
    car. - EPIA M10000 1GHz It's not bad at all... I believe it has a GeForce 4 gphx card built into
    the board... - 256MB PC100 SDRAM If you are planning to do something crazy....
  11. New In Animation Making
    (4)
    I'm going to try out myself in animation making. What software can you suggest me to begin with?....
  12. Browser Capabilities
    (9)
    When a browser connects to the Web server, it automatically sends an HTTP User Agent header. This
    header is an ASCII string that identifies the browser and its version number. The BrowserType object
    compares the header to entries in the Browscap.ini file. If it finds a match, the BrowserType object
    assumes the properties of the browser listing that matched the User Agent header.....

    1. Looking for making, web, browser, visual, basic, 6

See Also,

*SIMILAR VIDEOS*
Searching Video's for making, web, browser, visual, basic, 6
advertisement



Making A Web Browser With Visual Basic 6

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com