public HtmlViewPane(bool showNavigation)
        {
            Shadow = Gtk.ShadowType.In;
            VBox mainbox = new VBox (false, 2);
            status = (SdStatusBar) Runtime.Gui.StatusBar.Control;

            if (showNavigation) {

                nav.Back += new EventHandler (OnBackClicked);
                nav.Forward += new EventHandler (OnForwardClicked);
                nav.Stop += new EventHandler (OnStopClicked);
                nav.Reload += new EventHandler (OnRefreshClicked);
                nav.Go += new EventHandler (OnEntryActivated);

                topPanel.PackStart (nav);
                mainbox.PackStart (topPanel, false, false, 2);
            }

            htmlControl = new MozillaControl ();
            htmlControl.NetStart += new EventHandler (OnNetStart);
            htmlControl.NetStop += new EventHandler (OnNetStop);
            htmlControl.LocChange += new EventHandler (OnLocationChanged);
            htmlControl.ShowAll ();

            mainbox.PackStart (htmlControl);
            this.Add (mainbox);
            this.ShowAll ();
        }
    HtmlTest()
    {
        win = new Window ("HtmlControl test");
        win.SetDefaultSize (600, 450);
        win.DeleteEvent += new DeleteEventHandler (OnWinDelete);

        VBox vbox = new VBox (false, 0);

        Toolbar tbar = new Toolbar ();
        tbar.ToolbarStyle = ToolbarStyle.Icons;

        Button back = new Button ();
        back.Child = new Image (Stock.GoBack, IconSize.SmallToolbar);
        back.Relief = ReliefStyle.None;
        back.Clicked += new EventHandler (OnBackClicked);
        tbar.AppendWidget (back, "Go Back", "");

        Button forward = new Button ();
        forward.Child = new Image (Stock.GoForward, IconSize.SmallToolbar);
        forward.Relief = ReliefStyle.None;
        forward.Clicked += new EventHandler (OnForwardClicked);
        tbar.AppendWidget (forward, "Go Forward", "");

        Button stop = new Button ();
        stop.Child = new Image (Stock.Stop, IconSize.SmallToolbar);
        stop.Relief = ReliefStyle.None;
        stop.Clicked += new EventHandler (OnStopClicked);
        tbar.AppendWidget (stop, "Stop", "");

        Button refresh = new Button ();
        refresh.Child = new Image (Stock.Refresh, IconSize.SmallToolbar);
        refresh.Relief = ReliefStyle.None;
        refresh.Clicked += new EventHandler (OnRefreshClicked);
        tbar.AppendWidget (refresh, "Refresh", "");

        vbox.PackStart (tbar, false, true, 0);

        url = new Entry ();
        url.WidthChars = 50;
        url.Activated += new EventHandler (OnUrlActivated);
        tbar.AppendWidget (url, "Location", "");

        go = new Button ();
        go.Child = new Image (Stock.Ok, IconSize.SmallToolbar);
        go.Relief = ReliefStyle.None;
        go.Clicked += new EventHandler (OnGoClicked);
        tbar.AppendWidget (go, "Go", "");

        html = new MozillaControl ();
        html.NetStart += new EventHandler (OnNetStart);
        html.NetStop += new EventHandler (OnNetStop);
        html.TitleChange += new EventHandler (OnTitleChanged);
        html.LinkMsg += new EventHandler (OnLinkMessage);
        html.Html = "<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"test.css\" /></head><body>testing</body></html>";

        html.ShowAll ();
        vbox.PackStart (html, true, true, 0);

        status = new Statusbar ();
        vbox.PackStart (status, false, true, 0);

        win.Add (vbox);
        win.ShowAll ();
        html.InitializeWithBase ("file://" + Environment.CurrentDirectory);
    }