O'Reilly logo

Microsoft® Visual Basic® .NET Programmer's Cookbook by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Display a Web Page with Internet Explorer

Problem

You want to display an HTML page (or another type of document supported by Internet Explorer) in a Windows application.

Solution

Use the Web browser ActiveX control included with Internet Explorer.

Discussion

The .NET Framework does not include any controls for rendering HTML content. However, this functionality would be useful, either to display some local HTML content (like a rich help document) or some information from the Web (for example, a Web page that lists downloads a user might use to update an application).

To show an HTML page, you can add an Internet Explorer window to your Windows applications. This window not only supports HTML, it also supports JavaScript and Visual Basic Scripting Edition ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required