/// <summary> /// Associates the underlying ActiveX control with a client that can /// handle control events including NavigateError event. /// </summary> protected override void CreateSink() { base.CreateSink(); helper = new DWebBrowserEvents2Helper(this); cookie = new AxHost.ConnectionPointCookie( this.ActiveXInstance, helper, typeof(DWebBrowserEvents2)); }
/// <summary> /// 将底层的 ActiveX 控件与可以处理控件事件包括 NavigateError 事件的客户端 /// 关联起来. /// </summary> protected override void CreateSink() { base.CreateSink(); helper = new DWebBrowserEvents2Helper(this); cookie = new AxHost.ConnectionPointCookie( this.ActiveXInstance, helper, typeof(DWebBrowserEvents2)); }