Computer ProgrammingComputer programming is difficult, right? WRONG. Using new programs such as Microsoft Visual Basic 2008, you can create your own programs with ease. This tutorial will show you how to build your own fully-functional web browser in just a couple of minutes!

First off you’ll need a copy of Microsoft Visual Basic Express Edition 2008 (you can download it from here, and by the way… it’s free!) After installing and opening the program…

  1. Goto File > New Project
  2. Select ‘Windows Application’ and give it (your application) a name.
    For example: “WebBrowser”
  3. Hit the ‘OK’ button and your project will now load up!

Getting Started

Once your project is loaded, all you will see is a blank canvas window and lots of buttons. We will start off simple:

  1. In the “Toolbar” panel (found at the left of the screen), goto “Containers”. Then drag the “Panel” control onto the top left of your window, then stretch it out to make it fit the top half of your canvas (window).
  2. After that’s done, minimize the containers menu and click the “Common controls” button.
  3. From there, find the “Textbox” control and drag it into panel you previously added to your canvas.
  4. Again, from the “Common Controls” menu, find the button control and lay it into your panel beside the text box.
  5. Next, select the “Button1″ control found inside your canvas. On the right side of the screen, you’ll see a small properties window. Find the “text” text field and change “Button1″ to Go!
  6. Now select the “Web Browser” control found in the toolbox. Drop it into your canvas window under the panel and stretch it out to fit your window.

Inputting your code

  1. On the canvas, double click your “Go!” button. A code editor will pop up.
  2. In the code editor, under the “Private Sub…” text, type: WebBrowser1.Navigate (TextBox1.Text)

Finishing up

  1. Click the “Form1.vb (Design)” tab near the top of your window.
  2. Click the top border of your canvas, mouse over to the “properties” box, and like you did with the Go button find the “text” text and replace “Form1″ with anything you wish.

Test it out!

Now that you’re done, time for the fun part: actually seeing your program in action!
To test out (debug) your program, hit F5 or press the small “Play” button near the top of your screen!

And now you’re done! Enjoy!

Related Posts

If you have a question ask here