View Poll Results: Should i make a Advanced Web Browser Tutorial?

Voters
15. You may not vote on this poll
  • Yes

    15 100.00%
  • No

    0 0%
  • Maybe Later

    0 0%
Results 1 to 9 of 9

Thread: Tutorial - Very Simple Web Browser (Beginners)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Location
    I live in Iceland :)
    Posts
    107

    Smile Tutorial - Very Simple Web Browser (Beginners)

    Hi welcome to my tutorial.
    This is a tutorial for beginners.
    I will teach you how to make a very simple Web browser.
    This tutorial is for windows forms.
    --------------------------------------------------------
    The idea for Home is by me ( Hlinzi )
    Start off by designing you're Web Browser.
    What you need is

    - 2 Text Boxes ( 1 For Go (Gotextbox) 1 For Home (Hometextbox) )
    - 6 Buttons ( Go, Home, Forward, Back, Stop, Refresh )
    - 1 Webbrowser ( Webbrowser1 )
    - 1 Status Strip
    - 1 StatusStrip Label
    - 1 StatusStrip Progress Bar

    Okay.
    When you've put you're buttons together, double click Go button and write in this code:
    Code:
    Webbrowser1.Navigate(Gotextbox.text)
    Then go back to design and double click Home, Now write in this code:
    Code:
    Webbrowser1.Navigate(Hometextbox.text)
    Do this over again, here are the codes for the buttons:
    ---------
    Forward:
    Code:
    Webbrowser1.GoForward
    ---------
    Back:
    Code:
    Webbrowser1.GoBack
    ---------
    Stop:
    Code:
    Webbroser1.Stop
    ---------
    Refresh:
    Code:
    Webbrowser1.Refresh
    ---------
    StatusStrip Label & Progress Bar
    For this you need to double click the WebBrowser and change the Declaration to ProgressChanged.
    Code:
    ToolStripProgressBar1.Maximum = e.MaximumProgress
    ToolStripProgressBar1.Value = e.CurrentProgress
    ToolStripStatusLabel1.Text = "Progress: " & e.CurrentProgress
    ---------

    Thank you for reading my tutorial
    If this helped you, Please rate
    This is my Biggest Post So Far!
    Last edited by Hlinzi; Oct 25th, 2008 at 07:57 AM.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Location
    I live in Iceland :)
    Posts
    107

    Re: Tutorial - Very Simple Web Browser (Beginners)

    I don't know, ill try

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Location
    I live in Iceland :)
    Posts
    107

    Re: Tutorial - Very Simple Web Browser (Beginners)

    Hmm I'm sorry. It's almost not possible. You can't tell what's an ad and what's not. Anyway ill add a progress bar here :P

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Location
    I live in Iceland :)
    Posts
    107

    Re: Tutorial - Very Simple Web Browser (Beginners)

    For a ad blocker you could do this:
    Go Button_Click
    Code:
    If TextBox1.Text = "www.youtube.com" then
    Msgbox("Blocked Site")
    Textbox1.Text = ""
    End If
    And then you could change it and maybe add groupbox with option of changing blocked sites, lets imagine i have a groupbox with 1 Textbox which is TextBox10
    Code:
    If TextBox1.Text = TextBox10.Text Then
    Msgbox("Blocked Site")
    TextBox1.Text = ""
    End If

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Location
    I live in Iceland :)
    Posts
    107

    Re: Tutorial - Very Simple Web Browser (Beginners)

    But i wouldn't call it an ad blocker ;/

  6. #6
    Hyperactive Member Pac_741's Avatar
    Join Date
    Jun 2007
    Location
    Mexico
    Posts
    298

    Re: Tutorial - Very Simple Web Browser (Beginners)

    I do know how to block a desire web page using the web browser control.

    First, Create a blocked web page (the page that will be displayed if the page is blocked)

    Second, check if the web page that is going to be blocked is in some sort of blocked web page list, or which ever way you want to do it.

    Third, then display the blocked page on the web browser control.

    This should be very easy to do, I won't post any code, so you can investigate the web browser control more deeply.
    C# and WPF developer
    My Website:
    http://singlebits.com/

  7. #7
    New Member
    Join Date
    Feb 2011
    Posts
    2

    Thumbs up Re: Tutorial - Very Simple Web Browser (Beginners)

    oh god!
    thank you very much ,that's exactly the way of tutorials i need as beginner ,in other places i just find codes but lost in putting objects , that's so accurate ,
    thank youuuuuuuuuuu

  8. #8
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: Tutorial - Very Simple Web Browser (Beginners)

    Make one if you really want to. Don't if you do not wish to. * Note: The author of a tutorial sometimes learns things too!
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

  9. #9
    Banned
    Join Date
    Mar 2011
    Posts
    6

    Re: Tutorial - Very Simple Web Browser (Beginners)

    i needed this for a youtube thing i am doing

Posting Permissions

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



Click Here to Expand Forum to Full Width