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: