Browser Design in C Sharp (new theme)

                         Simple Browser ( New Theme )

                        Simple Browser Design in C Sharpe

Tools

1 . Dot net bar 

2. Simple window form

3. Web Browser tool 

4 . Tab tool 

Coding

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

using DevComponents.DotNetBar;

namespace browserwiththeme

{

    public partial class browser : Form

    {

        WebBrowser web = new WebBrowser();

        int i = 0;

        public browser()

        {

            InitializeComponent();

        }

        private void Form1_Load(object sender, EventArgs e)

        {

            web = new WebBrowser();

            web.ScriptErrorsSuppressed = true;

            web.Dock = DockStyle.Fill;

            web.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(web_DocumentCompleted);

            web.Visible = true;

            tabControl.TabPages.Add("New Tab");

            tabControl.SelectTab(i);

            tabControl.SelectedTab.Controls.Add(web);

            i += 1;

        }

        private void back_Click(object sender, EventArgs e)

        {

            ((WebBrowser)tabControl.SelectedTab.Controls[0]).GoBack();

        }

        private void forward_Click(object sender, EventArgs e)

        {

            ((WebBrowser)tabControl.SelectedTab.Controls[0]).GoForward();

        }

        private void adress_Click(object sender, EventArgs e)

        {

        }

        private void go_Click(object sender, EventArgs e)

        {

            ((WebBrowser)tabControl.SelectedTab.Controls[0]).Navigate(ad.Text);

            if (!ad.Items.Contains(ad.Text))

            {

                ad.Items.Contains(ad.Text);

            }

        }

        private void add_Click(object sender, EventArgs e)

        {

            web = new WebBrowser();

            web.ScriptErrorsSuppressed = true;

            web.Dock = DockStyle.Fill;

            web.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(web_DocumentCompleted);

            web.Visible = true;

            tabControl.TabPages.Add("New Tab");

            tabControl.SelectTab(i);

            tabControl.SelectedTab.Controls.Add(web);

            i += 1;

        }

        private void remove_Click(object sender, EventArgs e)

        {

            if (tabControl.TabPages.Count - 1 > 0)

            {

                tabControl.TabPages.RemoveAt(tabControl.SelectedIndex);

                tabControl.SelectTab(tabControl.TabPages.Count - 1);

                i -= 1;

            }

        }

        private void ribbonControl_Click(object sender, EventArgs e)

        {

        }

        private void superTab_Click(object sender, EventArgs e)

        {

        }

          void web_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)

        {

            tabControl.SelectedTab.Text = ((WebBrowser)tabControl.SelectedTab.Controls[0]).DocumentTitle;

          

        }

          private void ad_SelectedIndexChanged(object sender, EventArgs e)

          {

          }

          private void tabControl_SelectedIndexChanged(object sender, EventArgs e)

          {

          }

        }

    }

Click here To Download Source Code 

Source Code
 

 

Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

1 comments:

  1. DevComponents DotNetBar 14.1.0.37 Crack Free Download Suite for Windows Forms is an impressive 89-component toolkit for easily creating a professional user interface with Visual Studio 2005 through 2015. ...http://softwaregurucrack.com/devcomponents-dotnetbar-crack/

    ReplyDelete

Powered by Blogger.

Translate

 
 
.