INFO: Advantages of Hosting WebBrowser Control Instead of MSHTML

ID: Q180365

The information in this article applies to:

SUMMARY

Using the Internet Client SDK, an application can take advantage of the features of Internet Explorer 4.0 by hosting either the WebBrowser control or MSHTML. Both of these provide many features. However, the WebBrowser control offers a lot more functionality and is more appropriate for the vast majority of applications, where browsing or rich content viewing are the primary objectives. The purpose of this article is to show the advantages of hosting the WebBrowser control as opposed to hosting MSHTML.

MORE INFORMATION

There is currently only one scenario where it is recommended that an application host Mshtml.dll rather than the WebBrowser control: Parsing HTML. The WalkAll sample in the Internet Client SDK demonstrates how to host MSHTML. The WalkAll sample also shows how to host MSHTML without the UI.

By hosting the WebBrowser control rather than MSHTML, you get the following functionality for free:

For more information on hosting the WebBrowser control or reusing MSHTML, please refer to Internet Client SDK Help. The topic "Reusing the WebBrowser Control and MSHTML" discusses in detail how to host the WebBrowser Control and MSHTML.

REFERENCES

"Internet Tools and Technologies" under the "Reusing the WebBrowser Control and MSHTML" section in the Internet Client SDK online help: (http://www.microsoft.com/msdn/sdk/inetsdk/help/)

Additional query words: mshtml

Keywords          : AXSDKWebBrowser 
Version           : WINDOWS:4.0,4.01
Platform          : WINDOWS
Issue type        : kbinfo

Last Reviewed: June 16, 1998