Using VS2005 to create a simple page-browser

Source: Internet
Author: User

Introduction

There was a very early idea of a browser, tried to do it on the vs2003, and it often happens that when an autonomous browser encounters a pop-up window, it cannot capture a new pop-up window, and the new pop-up window still opens with IE (or another system default browser), in the research vs2005 WebBrowser control when the NewWindow event was found, so excited, decided to use this paging browser to experience the vs2005.

Implementation features

The preview diagram is as follows:

Current Browser "Save As", "print", "Print Gongs", "Page Setup", refresh, Forward, back, and so on. Almost all of the controls are encapsulated, without a few lines of code.

The paging capabilities of the browser. A new page is generated when the browser has a newwindow excitation. Mainly depends on the NewWindow event.

The status of the current page. such as the title, status bar, and so on.

Implementation process and key points

Create a new vs2005 Windows Applaction Project

Interface

A MenuStrip implements the topmost menu.

Two ToolStrip are toolbar and address bar respectively.

A TabControl is also the main body of the browser, it's each tabpage is every page.

A StatusStrip is also the status bar.

In addition, the control uses the Dock property of the control as it changes to make the form resize.

The following interface:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.