Computer 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…
- Goto File > New Project
- Select ‘Windows Application’ and give it (your application) a name.
For example: “WebBrowser”
- Hit the ‘OK’ button and your project will now load up!
Once your project is loaded, all you will see is a blank canvas window and lots of buttons. We will start off simple:
- 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).
- After that’s done, minimize the containers menu and click the “Common controls” button.
- From there, find the “Textbox” control and drag it into panel you previously added to your canvas.
- Again, from the “Common Controls” menu, find the button control and lay it into your panel beside the text box.
- 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!
- 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
- On the canvas, double click your “Go!” button. A code editor will pop up.
- In the code editor, under the “Private Sub…” text, type: WebBrowser1.Navigate (TextBox1.Text)
- Click the “Form1.vb (Design)” tab near the top of your window.
- 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!