Possible use cases

Extending the DOM.

WBHost can extend the Document Object Model (DOM) using objects, methods and properties implemented in your application. These objects, methods and properties will be available from scripts in any HTML page displayed by WBHost via the external object. For example, it allows you to have a button on a web page that calls the method implemented in the application and performing a complex SQL query to a database when you click it.

Forbidding viewing the source code of HTML pages.

For security reasons or in order to protect copyright, developers often need that end users could not view the source code of HTML pages. At the same time, Internet Explorer has a simple method of viewing the source code. To do it, it is enough just to select the "View Source" item in the context menu of the browser. WBHost allows you to make this item unavailable or remove it from the context menu. After that the user will not be able to select this item in the context menu in order to view the source code. Nevertheless, he can get around it by pressing Ctrl+N. By default, the Ctrl+N key combination opens a new Internet Explorer window where this item will be available in the context menu. WBHost allows you to intercept this key combination and cancel the default operation. Thus, the user will not be able to open a new Internet Explorer window and view the source code of the HTML page in it.

Settings independent of Internet Explorer.

By default, WebBrowser control uses global settings common for all instances of this ActiveX object. For example, if you start several Internet Explorer instances and forbid showing images in one of them, this change in the settings will affect all Internet Explorer instances. Moreover, it will also affect other applications that use WebBrowser ActiveX control. WBHost allows you to use individual settings independent of the global Internet Explorer settings.