|
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.
|
|
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
|
|
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 !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,200
|
Glad to hear that!
|
|