/// <summary>
        /// Helper function to initialize the browser and add it to the
        /// client area of the UserControl (it fills the entire area)
        /// </summary>
        private void InitializeBrowser()
        {
            // create browser instance
            m_browser = new AxWebBrowser();

            // begin initialization
            SuspendLayout();
            m_browser.BeginInit();

            // add browser to out client area
            m_browser.Enabled = true;
            m_browser.Dock = DockStyle.Fill;
            m_browser.TabIndex = 0;
            Controls.Add(m_browser);

            // end initialization
            m_browser.EndInit();
            ResumeLayout(false);
        }
 /// <summary>
 /// Initialize a DirectInvokeBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public DirectInvokeBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a NewWindowBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public NewWindowBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a NativeBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 /// <param name="cmdID">unique ID of command</param>
 public StandardBrowserCommand(AxWebBrowser browser, OLECMDID cmdID)
     : base(browser)
 {
     m_cmdID = cmdID;
 }
        /// <summary>
        /// Initialize a PrivateBrowserCommand
        /// </summary>
        /// <param name="browser">reference to underlying browser control</param>
        /// <param name="cmdID">unique ID of command</param>
        public PrivateBrowserCommand(AxWebBrowser browser, uint cmdID)
            : base(browser)
        {
            // make sure the cmdID is valid
            Debug.Assert(cmdID >= PrivateCommandMin && cmdID <= PrivateCommandMax,
                "Invalid private command ID");

            // save the command ID
            m_cmdID = cmdID;
        }
 /// <summary>
 /// Initialize an OrganizeFavoritesBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public OrganizeFavoritesBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize an LanguagesBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public LanguagesBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a ShellUIHelperBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public ShellUIHelperBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize an AddFavoriteBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public AddFavoriteBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a GoSearchBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public GoSearchBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a BrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public ExplorerBrowserCommand(AxWebBrowser browser)
 {
     Browser = browser;
 }
 /// <summary>
 /// Initialize a GoHomeBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public GoHomeBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a StopBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public StopBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a GoForwardBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public GoForwardBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 /// <summary>
 /// Initialize a GoBackBrowserCommand
 /// </summary>
 /// <param name="browser">reference to underlying browser control</param>
 public GoBackBrowserCommand(AxWebBrowser browser)
     : base(browser)
 {
 }
 public AxWebBrowserEventMulticaster(AxWebBrowser parent)
 {
     this.parent = parent;
 }