Sunday, October 3, 2010

make your own web browser

hello friends!!! before 3 days i made a web browser in visual basic...
today will show you how you can make it easily....
i will give you steps of  simplest browser, with only on button that is GO...
but you can add more.


If you have ever wished you could build your own web browser, it's far easier than you think. Take a look.
Difficulty: Moderately Easy

Instructions

Things You'll Need:

  • Microsoft Visual Studio 2005
  • Some knowledge of Visual Basic
  1. 1
    Create VB Project
     
    Create VB Project
    Create a new Visual Basic Windows Application project. This sample project was named PersonalBrowser and saved locally.
  2. 2
    Change Form1 Text Property
     
    Change Form1 Text Property
    Click on Form1 and change its default Text property to "PersonalBrowser".
  3. 3
    Add WebBrowser Component
     
    Add WebBrowser Component
    From the Toolbox, add the WebBrowser component. It will fill the form. To change this, click the new WebBrowser1 and change its Layout Dock property from "Fill" to "Bottom". This will allow you to change it's size and make space for some extras.
  4. 4
    Add TextBox And Button
     
    Add TextBox And Button
    From the Toolbox, add a TextBox and a Button. Neatly position both above WebBrowser1.
  5. 5
    Change the Text property of Button1 to "Go". Modify the Anchor property on all three accordingly.
  6. 6
    Add button function
     
    Add button function
    Double-click on the button. This is how the browser will grab the address you type in TextBox1 (aka. address bar). Add the following:

    If TextBox1.Text = "" Then
    WebBrowser1.Navigate("www.ehow.com")
    Else
    WebBrowser1.Navigate(TextBox1.Text)
    End If
  7. 7
    Run the example to test it out. When you've got it tweaked with pictures, colors, and lots of extras, Publish your finished product and use it with pride!
princy gupta
mmec

No comments:

Post a Comment