Results 1 to 2 of 2

Thread: make a browser like internet explorer or firefox

  1. #1
    Join Date
    Mar 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up make a browser like internet explorer or firefox

    hi friends,
    i want to make a browser like internet explorer or firefox.
    can u tell me the way how to start ?

    i got this somewhere, but i couldnt manage to get a start also from here

    Make your own browser, Make and use a browser for yourself

    :

    An example of how to create your own simple web browsers with ease. This guide will start you off and hopefully you can try
    new things, add your own skin & more.

    Making a web browser is so simple. It consists of only a few lines of code they are so easy to make use. Let's start off
    with starting a new Visual Basic project, a standard exe.

    Add the following controls onto your form:

    . 5 command buttons
    . 1 web browser
    . a text box


    Now what's left to do is put all the code into the commands, as you can see the text box is going to be where you put all of
    the website urls you want to visit, you could also use a combo box for this which is fine. The command buttons will do
    different things; the go button is used to go to the website you enter.

    As you can see we have got a back button, a forward button, a refresh button a stop button, these are all the basic commands,
    you can add more as you get more comfortable with the commands.We can now add the code into the commands then you can take
    it further is you would like.Let's start off with the Form Load part, firstly we can set our default page for the browser
    when it loads up.

    Rename your web browser to anything simple, I have renamed it to 'wb' because it's short and saves me writing out
    'webbroswer1.' All of the time.

    Private Sub Form_Load()
    wb.Navigate \"h**p://www.yahoo.com\"
    End Sub

    The code above will load our website into the web browser as soon as the application loads up.

    Now put the following code in the buttons required:

    Refresh Button

    Private Sub Command5_Click()
    wb.Refresh
    End Sub

    Stop Button

    Private Sub Command3_Click()
    wb.Stop
    End Sub

    Back Button

    Private Sub Command1_Click()
    wb.GoBack
    End Sub

    Forward Button

    Private Sub Command2_Click()
    wb.GoForward
    End Sub

    Go Button

    Private Sub Command6_Click()
    wb.Navigate Text1.Text
    End Sub

    Now that's all the code I have shown examples for, if you want to add to your browser then go ahead.
    Hope this tutorial helped you with the basics of making a web browser.
    i need some help with the codeings. if someone can help me , i would be very happy.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Please don't cross-post.

    This is not a real web browser, only a control panel for the Internet Explorer ActiveX control. Creating a full web browser is a long and complex task, and far beyond your current ability, to judge by the fact that you're still using Visual Basic and require help with that tutorial.

    If you really want to get started creating a web browser, you should first learn a more powerful language, then look at some examples: the Dillo source, or the Firefox source.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •