Welcome Guest Search | Active Topics | Sign In | Register

Load link in external web browser Options
Pavel
Posted: Monday, March 29, 2021 11:43:08 PM
Rank: Newbie
Groups: Member

Joined: 3/29/2021
Posts: 2
hello,
I am looking for a solution for a long. Searched many times but didn't find it.

Currently, When I click on a link that is viewed on EO.WebBrowse ,it's navigate on EO.WebBrowser.

I want It will open in External Web Browser.


It can be done easily in Default Web Control of C#.

public void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
//cancel the current event
e.Cancel = true;

//this opens the URL in the user's default browser
Process.Start(e.Url.ToString());
}

But how to do in EO.web browser ?

Thanks in advance.
eo_support
Posted: Tuesday, March 30, 2021 10:28:58 AM
Rank: Administration
Groups: Administration

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

You would handle the WebView's BeforeNavigate event and use similar code in the event handler:

Code: C#
if (e.NavigationType == NavigationType.LinkClicked)
{
    e.Cancel = true;
    System.Diagnostics.Process.Start(e.NewUrl);
}


Thanks
Pavel
Posted: Tuesday, March 30, 2021 11:13:27 AM
Rank: Newbie
Groups: Member

Joined: 3/29/2021
Posts: 2
eo_support wrote:
Hi,

You would handle the WebView's BeforeNavigate event and use similar code in the event handler:

Code: C#
if (e.NavigationType == NavigationType.LinkClicked)
{
    e.Cancel = true;
    System.Diagnostics.Process.Start(e.NewUrl);
}


Thanks



Thank you so much EO Support. Love EO Tools !
eo_support
Posted: Tuesday, March 30, 2021 12:44:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,200
Glad to hear that!


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.