Hello,
When user click on the link in the control then this link should be opened in default system browser (ie,chorme...).
Everything works on W10. I have a problem on WS2012R2.
When system browser is behind my app (not minimized) then the page is loaded but system browser won't bring it to front.
I've prepared an example:
Quote:using System;
using System.Windows.Forms;
namespace EOLinkTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
webView1.LoadHtml("<html><body><a href=\"https://www.google.com/\" target=\"_blank\">open in new tab </a></body></html>");
}
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://www.google.com/");
}
private void webView1_NewWindow(object sender, EO.WebBrowser.NewWindowEventArgs e)
{
e.Accepted = false;
System.Diagnostics.Process.Start(e.TargetUrl);
}
}
}
When I click in the button then browser is bring to front. But when I click on the link in control then I will see browser icon bliking on the taskbar. I have the same behavior with ie and chrome.
Do I use NewWindow method on a wrong way?
I will be happy with any suggestion :)