Can anyone show me how can i write this code correctly in WPF
var rows = webBrowser1.Document.GetElementsByTagName("table")["myTable"].GetElementsByTagName("tr");
for(int i = 0; i < rows.Count; i++)
{
MessageBox.Show(rows[i].GetElementsByTagName("td")[0].ToString());
}
You could always host the
System.Windows.Forms.WebBrowser
in aSystem.Windows.Forms.Integration.WindowsFormsHost
control: