예제 #1
0
        void browser_StartNewWindow(object sender, BrowserExtendedNavigatingEventArgs e)
        {
            var index = tbMain.SelectedIndex;
            var tab   = CreateNewBrowserTab();
            var page  = new BrowserPage();

            e.AutomationObject   = _browserTabs[tab].ActiveXInstance;
            tbMain.SelectedIndex = index;
            tbMain.Items.Remove(tab);
            page.Closing += page_Closing;
            page.AssignTab(tab, _browserTabs[tab]);

            //page.Show();
            //e.Cancel = true;
            //_browserTabs[tab].Navigate(e.Url);
            //Navigate(e.Url.ToString());
        }
예제 #2
0
        void browser_StartNewWindow(object sender, BrowserExtendedNavigatingEventArgs e)
        {
            var index = tbMain.SelectedIndex;
            var tab = CreateNewBrowserTab();
            var page = new BrowserPage();
            e.AutomationObject = _browserTabs[tab].ActiveXInstance;
            tbMain.SelectedIndex = index;
            tbMain.Items.Remove(tab);
            page.Closing += page_Closing;
            page.AssignTab(tab, _browserTabs[tab]);

            //page.Show();
            //e.Cancel = true;
            //_browserTabs[tab].Navigate(e.Url);
            //Navigate(e.Url.ToString());
        }