The WebBrowser control in Internet Explorer provides an easy way to display Web pages. To add the WebBrowser control to the toolbox, right-click it and selecting Customize Toolbox. On the COM tab of the Customize dialog box, select the Microsoft WebBrowser control. The following example demonstrates how to display Web pages with this control.
using System;
using System.Net;
namespace DisplayingWebPages
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
int Zero = 0;
object MyZeroed = Zero;
String MyString = " ";
object My2ndObject = MyString;
//Displays a Web page control
axWebBrowser1.Navigate("http://www.MyWeb.com",
ref MySeroed,
ref My2ndObject,
ref My2ndObject,
ref My2ndObject);
}
}
}