Ce matin en lisant mes feeds RSS, je suis tombé sur cet article de CodeProject.com :

"Extended .net 2.0 WebBrowser Control

.NET 2.0 has a new WebBrowser control in the System.Windows.Forms namespace. This control itself is very useful, but doesn't supply some events that might be needed in certain situations. This article explains how to extend the WebBrowser control and add functionality for things like pop-up blocking, script error handling, and handling new windows in a tabbed browser environment.

For extending the WebBrowser control, some features are not documented in the Help files of the .NET Framework. Not letting us be stopped by the "This method supports the .NET Framework infrastructure and is not intended to be used directly from your code." message, it is possible to create an object that implements IWebBrowser2 and use all the functionality of the underlying browser. Besides this, DWebBrowserEvents2 can be implemented for adding events to the control."

Si vous utilisez régulièrement le WebBrowser mais les fonctions qu'il offre de base ne vous suffisent pas... cet article est pour vous :)


--> http://www.codeproject.com/csharp/ExtendedWebBrowser.asp