Exemple #1
0
        public BrowserEvents2Multicaster(HtmlControl hc)
        {
            // Call QueryInterface for IConnectionPointContainer
            control = hc ;
            UCOMIConnectionPointContainer icpc =
                (UCOMIConnectionPointContainer)hc.GetOcx();

            // Find the connection point for the
            // DWebBrowserEvents2 source interface
            Guid g = typeof(IWebBrowserEvents2).GUID;
            icpc.FindConnectionPoint(ref g, out icp);

            // Pass a pointer to the host to the connection point
            icp.Advise(this, out cookie);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NavigableWebForm2));
     this.web = new System.Windows.Forms.Html.HtmlControl();
     ((System.ComponentModel.ISupportInitialize)(this.web)).BeginInit();
     this.SuspendLayout();
     //
     // web
     //
     this.web.ActiveXEnabled = false;
     this.web.AllowInPlaceNavigation = false;
     this.web.BackroundSoundEnabled = false;
     this.web.Body = "";
     this.web.Border3d = true;
     this.web.Dock = System.Windows.Forms.DockStyle.Fill;
     this.web.Enabled = true;
     this.web.FlatScrollBars = true;
     this.web.Html = "";
     this.web.ImagesDownloadEnabled = true;
     this.web.JavaEnabled = false;
     this.web.Location = new System.Drawing.Point(3, 3);
     this.web.Name = "web";
     this.web.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("web.OcxState")));
     this.web.ScriptEnabled = false;
     this.web.ScriptObject = null;
     this.web.ScrollBarsEnabled = true;
     this.web.Size = new System.Drawing.Size(612, 294);
     this.web.TabIndex = 9;
     this.web.VideoEnabled = false;
     //
     // NavigableWebForm2
     //
     this.Controls.Add(this.web);
     this.DockPadding.All = 3;
     this.Name = "NavigableWebForm2";
     this.Size = new System.Drawing.Size(618, 300);
     ((System.ComponentModel.ISupportInitialize)(this.web)).EndInit();
     this.ResumeLayout(false);
 }