Making a Web Browser in Visual Studio

by cartyhead in Circuits > Software

32158 Views, 27 Favorites, 0 Comments

Making a Web Browser in Visual Studio

when its done.jpg

This instructable will show you how to make a web browser in Visual Studio 2013.

The Template

new.jpg

Open a new project in Visual Studio, and choose "Windows Forms Application".

Getting What You Need

web.jpg

Next, go to the toolbox and get one textbox, 5 buttons, and one webBrowser.

Naming the Buttons

with full layout.jpg

Now you need to layout everything the way you want it. Now name your buttons: back, forward, go, refresh, and home.

Programming Everything

5516e026c6ba5d375e00004e.jpeg
forward.jpg
Go.jpg
Home.jpg
5516e4d0c6ba5d9e870000a9.jpeg

This is my favorite part. Programming!! For each of the things we program you need to double click them to show the script.

For the back button, in the blank space type in WebBrowser1.GoBack() now close the script window

For the forward button, in the blank space type in WebBrowser1.GoForward() now close the script window

For the Go button, in the blank space type in WebBrowser1.Navigate(TextBox1.Text) now close the script window

For the Home Button, in the blank space type in WebBrowser1.GoHome() now close the script window

For the refresh button, type in WebBrowser1.Refresh() now close the script window

Now that we've programmed everything, it will work!!

Debug It!

5516e31fc6ba5d9e870000a8.jpeg

Now press F5, or go to bar on top with file, edit, view... Click the debug tab, then click start debuging. Now your browser will open up! When you click the home button, it should take you to your home page of your default web browser.

Finishing

when its done.jpg

Now save your project, and you can visit your browser at anytime!