using System; using System.Drawing; using System.Windows.Forms; namespace SimpleBrowser { public class SimpleBrowser { [STAThread] public static void Main() { // Create the main window form Form simpleBrowserForm = new Form(); simpleBrowserForm.Text = "Simple Browser"; simpleBrowserForm.Size = new Size( 600, 500 ); // Create the browser control AxMOZILLACONTROLLib.AxMozillaBrowser browser = new AxMOZILLACONTROLLib.AxMozillaBrowser(); browser.Dock = DockStyle.Fill; simpleBrowserForm.Controls.Add( browser ); // Show the window and browse to a place where // you can get to everywhere. simpleBrowserForm.Show(); browser.Navigate( "http://www.google.com" ); // Main loop Application.Run( simpleBrowserForm ); } } }