Exemple #1
0
        public frmBrowse(ArrayList urlList)
        {
            InitializeComponent();

            this.cbUrlList.Items.AddRange(urlList.ToArray());
            if (urlList.Count > 0)
            {
                this.cbUrlList.SelectedIndex = 0;
            }

            System.Runtime.InteropServices.ComTypes.IConnectionPointContainer icpc =
                (System.Runtime.InteropServices.ComTypes.IConnectionPointContainer)axWebBrowser1.GetOcx(); // ADDed

            Guid g = typeof(DWebBrowserEvents).GUID;

            icpc.FindConnectionPoint(ref g, out icp);
            icp.Advise(this, out cookie);
        }