This is an example application I wrote several years ago and never posted to the code project, with the realease of Visual Studio 2005 this past year and the inclusion of a browser control with VS2005, I have been getting alot of emails asking if I plan on doing an article or project highlighting the use of the new control. Good news there, I am working on a project that I have to use the control in and hopefully will allow me put something together using the new control to share with everyone. In the meantime I thought I would release this older code here on code project, you will find with some tweaking most of this code will work with the new browser control. Keep in mind that new control is a wrapper around the SHDocVW (internet explorer control) and basically exposes some (not all) of the features available in IE, some is easier to do, other stuff you will have to reference the control to accomplish. In the new article I hope to find time for I have not had to reference the com object in the project, instead loading it at runtime when needed and then releasing it. Please keep in mind as you look into this code that it is several years old and was thrown together mainly for a friend who was assigned a project that required browsing features and was loosely based on a project I had just previously written in VB6 and was looking into porting it to .net. To make the example code run either download the demo project and extract the 2 com objects to the bin folder or search for SHDocVW.DLL on your pc and copy that to the projects bin folder.
I hope you find this re-release useful.