Today we will focus on creating our own web browser.

C# Web Browser actually provides an Internet Explorer control. The control has several properties, methods, and events that we can use to implement user interface features.


To know more click on Web Browser Capabilities to a Windows Forms Application, WebBrowser Class

Let’s have it practically:

First of all we have to create a new project in VS-2015(me using), this time we will click on Windows Form Application in template window.

3

Name it as your wish, I named it Web Browser. Finally the sample application window will appear with a blank sample form.

4

For our Navigation bar we will now drag n drop the ToolStrip menu to the project window and create our navigation button as we need. doc it to top.

6

Now we will add some icon to our application resource and give the button a look.

8

To show the status we need to add StatusStrip from Toolbar’s section Menus & Tools, drag n drop it on application form and doc it to bottom.10

Now we will drag n drop the Web Browser control from the toolbar. We will doc it as Fill, so that the websites can view with fullscreen.

11

Ok now let’s add some mechanism with this form controll and view the website by user request.

FORM1.cs

Here I set the default url to http://www.msn.com

The out:

15

Deployment:

At this stage we will create a setup file with InstallShield 2015 Limited. Let’s take another new project like below picture17

Click ok and the default screen will appear with several setup information.18

19

Include if any required software needed to run this application.

20

Add project output

21 22

Create shortcut to desktop or start menu with adding icon

23 24 25

add license file

26

Finally build the project

28 29

Install and check it out

30 31 32 33

after finishing the installation process the icon will appear in program menu and on desktop.

34

35

Thanks and hope it will help someone to build own web browser in their application 🙂

Source Code: I’ve uploaded the full source code to download/clone @github.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *