Forum Discussion
Andy_AA
Aug 18, 2021Copper Contributor
Reload opend page in Edge via C#
Hi,
we are migrating from IE to edge and one of our software was refreshing IE pages.
It was perfectly running for IE but of course not for Edge
could you provide me equivalent for edge of code here under?
Actual software is a windows services .net framework 4.5.2
Tools is Visual Studio 2019
foreach (SHDocVw.InternetExplorer ieInst in new SHDocVw.ShellWindowsClass())
{
if (String.IsNullOrEmpty(ieInst.LocationURL) == true) continue;
foreach (string S in res)
{
if (ieInst.LocationURL.ToUpper().Contains(S)) //check if url contain a specific text
{
ieInst.Refresh();
break;
}
}
}
Thanks for your help
No RepliesBe the first to reply