mercredi, novembre 16, 2005

WebBrowser control

Visual studio 2005 includes a new control named the WebBrowser control. The WebBrowser control is a wrapper of the IE ActiveX browser control. The biggest benefit of the WebBrowser control is ease of use. It allows an application to host html content using a simple managed object model without the need to do any interop with unmanaged code. At design time you can easily set the WebBrowser control’s URL property. Programmatically you can perform all of the standard operations you could with the ActiveX browser control. For example, navigating the browser control and hooking navigation events. The WebBrowser control also supports several additional pieces of functionality such as enabling/disabling the browser context menu & restricting what the hosted HTML page can do.

You can get samples fromMSDN site

Aucun commentaire: