Welcome Guest Search | Active Topics | Sign In | Register

New Window Handler Options
Mario Gutierrez
Posted: Tuesday, October 10, 2017 4:39:45 PM
Rank: Newbie
Groups: Member

Joined: 10/10/2017
Posts: 2
Hi,

I´m trying to open a new window in the same window, I don´t know if my code it´s ok.

Code: C#
private void webView3_NewWindow(object sender, NewWindowEventArgs e)
        {
            webView3.NewWindow += new EO.WebBrowser.NewWindowHandler(webView3_NewWindow);
            webView3.Url = e.TargetUrl;
            e.Accepted = true;   
        }
    }
}


I´m a noob BTW

Thanks
eo_support
Posted: Wednesday, October 11, 2017 10:13:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,225
Hi,

You should just use webView3.Url = e.TargetUrl and that's it. The other two lines are not needed.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.