Hi find the below c# code....
private void CheckWindow()
{
InternetExplorer ie = default(InternetExplorer);
ShellWindows shellWins = new ShellWindows();
foreach (var ie in shellWins) {
if (ie.LocationURL == "
http://www.google.com") {
Interaction.MsgBox("IE Found");
WebBrowser1.Document.GetEl
ementById(
"test").Ge
tAttribute
("value");
}
}
}
I used the link
http://www.developerfusion.com/tools/convert/vb-to-csharp/to convert...