Nov 21, 2009
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9

How To Make A Web Browser - Visual Basic 6

free web hosting

Read Latest Entries..: (Post #83) by iGuest on Sep 25 2009, 05:39 AM.
My this is bugged up! Someone help me!! How To Make A Web Browser Hi Guyz & Girls My VB6 is stuffed cos I can't get it to run Runescape cos I wanna make a Runescape Client this is my code: Private Sub cmdback_Click() WebBrowser1.GoBack End Sub Private Sub cmdforward_Click() WebBrowser1.GoForward End Sub Private Sub cmdgo_Click() WebBrowser1.Navigate (Text1.Text) End Sub Private Sub cmdrefresh_Click() WebBrowser1.Refresh End Sub Private Sub Form_Load() WebBrowser1.Navi...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > Tutorials

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.

 

 

 


Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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..

Comment/Reply (w/o sign-up)

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

Comment/Reply (w/o sign-up)

Latest Entries

iGuest
My this is bugged up! Someone help me!!
How To Make A Web Browser

Hi Guyz & Girls

My VB6 is stuffed cos I can't get it to run Runescape cos I wanna make a Runescape Client this is my code:

Private Sub cmdback_Click()
WebBrowser1.GoBack
End Sub


Private Sub cmdforward_Click()
WebBrowser1.GoForward
End Sub


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


Private Sub cmdrefresh_Click()
WebBrowser1.Refresh
End Sub


Private Sub Form_Load()
WebBrowser1.Navigate ("http://www.Runescape.Com")
End Sub


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

-reply by Its bugged up! (or my VB6)

Comment/Reply (w/o sign-up)

iGuest
Firefox
How To Make A Web Browser

Firefox/the Gecko Engine Is Created With C++ C And Java Actually (Strange Using Java In A Web Browser) But All The Files In The Folder /Chrome Are All Jar / Executable Java Files So yeah XD

-reply by Tobi

Comment/Reply (w/o sign-up)

iGuest
So when a page is finally displayed when you click a link it open IEXPLORER!
How To Make A Web Browser

So when a page is finally displayed when you click a link it open IEXPLORER 8.0, so it is not a browser as it doesn't produce a self contained program.

You can do simpler macro that Remote Control IExplorer with Autoit basic macro language you will have a coherent interface and an addon that don't need any runtime.

So forget about Microsoft it's another bluf to sell VB with a book included for some dollars and make serious youngs who want to learn programming in an endless loop, only exit is support.

Firefox, Chrome, Safari use Webkit library to display web pages WEBKIT.Org all embeded  in a QT interface, it's more serious stuff even if it is free, imagine they will have the budget to design F22/F35 switches...

 Happy programming

Max


Comment/Reply (w/o sign-up)

Deam`
This was usefull, thanks. But I don't like this kind of browser because it's too slow, and it's unsafe. I think it's better to use already made browsers for surfing on internet smile.gif

Comment/Reply (w/o sign-up)

iGuest
How to display status in vb 2005/2008 express
How To Make A Web Browser

Status Text:

Label1.Text=WebBrowser1.StatusText

Form Text:

Me.Text=WebBrowser1.DocumentTitle & "-(wathever do you want)"

Url Text:

TextBox1.Text=WebBrowser1.Url.ToString

-reply by Skynet


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)

Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
Similar Topics

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

  1. Ftp In Visual Basic 6.0
    Start making your FTP client using VB6 (3)
  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 go ....
  3. Creating A Simple Image Viewer
    Using Visual Basic 2005 Express Edition (4)
    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 (9)
    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 to say; i.e. title could....
  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 (8)
    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
See Also,
advertisement


How To Make A Web Browser - Visual Basic 6

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