Jul 25, 2008

How To Make A Web Browser - Visual Basic 6

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2, 3, 4, 5

free web hosting

How To Make A Web Browser - Visual Basic 6

rejected
This is a simple and specific tutorial on how to make a basic web browser in Visual Basic 6.

Steps 1-3
Create a new project, and then go to "Project" on the menu.
Click components as shown in the following image.
user posted image
Find the component "Microsoft Internet Controls," check it, and click "Apply" and then "Close."
user posted image
Click the icon that was just added in the tools window, and draw a large sized window with it. This is going to be where you view webpages through your browser, so don't make it small, but leave room for buttons and other accessories.

Steps 4-6
Make a textbox, this will be your URL bar where you type in the address of the website you want to see.

Make four command buttons, these are going to be your Go, Back, Forward, and Refresh buttons, change the captions accordingly, and name each of them Cmdgo, Cmdback, CmdForward, and CmdRefresh.

Now, here's the coding part. This is all it takes to make your webbrowser working.
CODE

Private Sub cmdback_Click()
WebBrowser1.GoBack
End Sub

Makes the back button go backwards, pretty much self explanatory.
CODE

Private Sub Cmdforward_Click()
WebBrowser1.GoForward
End Sub

Same concept, except this time the webbrowser goes forward.
CODE

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

Makes your webbrowser go to the URL in your text box.
CODE

Private Sub cmdrefresh_Click()
WebBrowser1.Refresh
End Sub

Makes your web browser refresh.
CODE

Private Sub Form_Load()
WebBrowser1.Navigate ("http://thyelite.com")
End Sub

The URL shows your homepage, change it to http://google.com or whatever your usual homepage you would like to be.
CODE

Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
Form1.Caption = (WebBrowser1.LocationName)
End Sub

This changes the text box's text into what URL that you're currently at, and the next line makes the caption of your form into the header of the URL.

There you are, a tutorial on how to make a browser, thanks for your time smile.gif.

 

 

 


Reply

SqlByte
yeah... i made that or something similar long ago... but it was slow as hell... i was loading google for an half an hour tongue.gif
That stuff could be used for spoofing your browser id...
I remember ther where a way to build a web browser in php... il post it if ifind it.

Reply

Eikon
Hmm...Interesting stuff. I'll have to try this out when I get back to school from the holiday break, as I don't have VB6 on this computer.

Reply

Inspiron
It's also possible to do it with VB.NET. The internet browser created with Visual Studio actually takes the properties and settings configured for the Internet Explorer (IE) browser on your computer.

So basically, in other words, you have created a customised IE rather than your own browser.

Reply

wild20
Awesome, but I would worry about it messing with the integrity of your security. The main problem I also see with this is the fact that it could also make it run slower than usual. Is there a way to be able to switch between using the regular browser and the one you create? Overall it IS a good idea though and I think this is a great post. Thanks for the info and if I ever get the program I will try it.

Reply

MarCrush
I know how to make a web browser in Visual Basic. Visual Basic is like the most easy language. Delphi is also easy. When you make your own browser and open a new window, it opens it in IE instead. There is probably some sort of code to make it so it opens it a new window in your program but I don't know what the code is.

Hint: Use Google.

Reply

snlildude87
Yeah, a web browser needs a LOT more code than that. What you're doing, like Inspiron said, is making your very own custom Internet Explorer. It's like taking the source code of Firefox and modifying it to your likings...except less complicated.

Reply

Compute
YAYA I'v been looking everywhere for this. So is firefox made in visual basic lol. I though it.

Great tutorial. Really helped! thanks.

Reply

Inspiron
Firefox is not created with Visual Basic however. Rather it's impossible to believe that Firefox is created with Visual Basic because Microsoft owns Visual Basic and this language isn't free. So if Firefox is created with a paid programming language, then why it would be distributed free?

I'm not sure but I have a feeling that Firefox is created with C++ language..

Reply

rejected
FireFox was created in C++, you can download the tarballs since it's an open source project..

Reply

Latest Entries

iGuest
download manager?popup blocker? tabs?how DO they do it?????
How To Make A Web Browser

Replying to MarCrush
You could dim a new form and when he opens a new window you could open the form but I don't know how to put a browser in it...

-reply by Zeusthedevil

Reply

iGuest
It keeps on poping up with runtime error

What I gotta do to fix it?

-reply by tom-2008

Reply

flashy
This topic is nearly three years old. Oh yeah by the way it would be lovely if you had the pictures. If you needed a progress bar this is mine from my web browser app
CODE
With ProgressBar1
.Minimum = 1
.Maximum = 10000
.Value = 1
.Step = 1
ProgressBar1.Visible = True
For i As Integer = .Minimum To .Maximum
.PerformStep()
Next i
End With

Reply

masrawy
web browser is actually a web client, the idea behind it depends on client server architecture, in which client sends commands to the server and waits for response from the server.

In web service HTTP protocol is used, this protocol is easy to study and apply, web browser sends Http request to server which replies with Http response

Reply

ultraviolet_66
is there a java web browser code? it would be nice i think...

Reply



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3, 4, 5
Recent Queries:-
  1. webbrowser in vb - 0.19 hr back. (1)
  2. vb browser code - 1.26 hr back. (1)
  3. vb6 web browser - 1.50 hr back. (1)
  4. vb6 web brower to help - 1.83 hr back. (2)
  5. webbrowser vb 6 - 1.97 hr back. (1)
  6. vb6 browser - 1.71 hr back. (2)
  7. make a web browser visual c - 3.06 hr back. (1)
  8. vb web browser - 3.10 hr back. (1)
  9. how to build basic http browser - 3.11 hr back. (1)
  10. get url from visual basic web browser - 3.74 hr back. (1)
  11. how to make a web browser - 2.79 hr back. (2)
  12. basic web browser buttons - 4.87 hr back. (1)
  13. visual basic web browser - 2.90 hr back. (2)
  14. vb6 webbrowser - 5.78 hr back. (2)
Similar Topics

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

  1. Ftp In Visual Basic 6.0
    Start making your FTP client using VB6 (0)
  2. Creating A Timer Program
    Using Visual Basic 2005 (8)
    This tutorial will explain how to create a basic timer using Visual Basic Express 2005. If you
    don't have it, it's free and you can dowload it from Microsoft's website. All you need
    is a few minutes to sit down and read this and a version of Visual Basic. OK, so what will this
    timer actually do? Well, you are able to enter a number of minutes and a message, and then click a
    button. Once the timer is up, your message pops up and you are reminded! So, basically it's
    a little reminder system. I use it to remind me when TV programmes start, when I have to....
  3. Creating A Simple Image Viewer
    Using Visual Basic 2005 Express Edition (3)
    I downloaded Microsoft's Visual Studio Express suite a few months ago, but only recently got
    around to installing it. I have been practising with Visual Basic and making some rather basic
    programs and utilities, but they contain most of the basic concepts. This tutorial will explain how
    to create a basic image viewer, and I will try to explain each step from beginning to end as clear
    as I can. To start you will need: Microsoft Visual Studio About 10-20 minutes free time OK,
    first open up the Visual Basic part of the Studio. I am using the 2005 Express version, so....
  4. Bit Shifting In Vb
    Shifting bits in Visual Basic (0)
    This is for all Visual Basic programmers out there, who want to programm some form of encryption
    algorithm, or anything else that includes shifting bits left or right, for that matter. Most of you
    who have tried to accomplish this, know that Visual Basic doesn't have any function for bit
    shifting. And bit shifting si very usefull /smile.gif' border='0' style='vertical-align:middle'
    alt='smile.gif' /> Some of you probably know how to shift bits, but this tutorial is for those who
    don't know how to do it... Shifting bits is actualy easy, we use multiplication ....
  5. Simple Login In Visual Basic 6
    user interaction example trough login programm (5)
    First of all, I am NOT a programmer, this is something my friend taught me. It describes basic
    interaction with the user, while showing basic functionality of this simple programm. So, without
    further ado, we're off to the tutorial: First of all, start your visual basic, when prompted
    for new project, select Standard Exe . Next, we need to open code window, so we can start typing
    the program. This can be done in two ways, one is double clicking on the form, or selecting Code
    from View menu. If you double clicked on the form, you will see following text: CODE ....
  6. Simple Visual Basic 6 Tutorial
    Tutorial 1: Msgbox (0)
    For this tutorial you will learn how to make a very simple, and basic program. Step one- Create a
    new form. Step two- Click the command button on the side and make two buttons. Step Three- Click
    on on of the command buttons you drew, and on the side there will be a menu. Change the caption to
    Button 1, and repeat the same with the other button, but the caption Button 2. Step four- Double
    click one of the buttons, and put in CODE Dim button button = MsgBox("What you want to
    say here", 65, "Title") Now change that code to what you want it ....
  7. [tutorial] Visual Basic 6
    Adding Commas to Large Numbers (0)
    This isn't a very long tutorial. I get asked this often, so here is the solution. The following
    code will return a string containing a number that has commas appropriately placed: Code:
    myStringOrProperty = FormatNumber(3587532789053, 0) The second parameter (0) represents how many
    decimal places you want the returned number to go out to. Unless your number contains its own
    decimal, you probably don't want .00 at the end of every number you have. The above code would
    return: 3,587,532,789,053 This should make life easier for many.......
  8. [tutorial] Visual Basic 6
    Closing Programs Right, Why END is bad (2)
    This tutorial applies to all those people who insist upon using "End" to close their programs: End
    stops the program immediately without any thought as to what's going on - it's like a high
    speed train hitting a brick wall. It can cause unwanted errors and is bad programming practice in
    general. END gets rids of the form, but NOT its leftovers. This leaves a bunch of memory that will
    still be in use even after your program has supposedly closed. An object or variable won't be
    terminated properly - it's just not a graceful exit. The only time that it'....

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

Searching Video's for make, web, browser, visual, basic, 6
advertisement



How To Make A Web Browser - Visual Basic 6



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE