This code gets the HTML from a control that is inherited from WebBrowser, and uses the DOM to find particular tables and items within it.
HtmlElement element = Document.GetElementById("directory_list");
HtmlElementCollection trCollection = element.GetElementsByTagName("THEAD");
trCollection = trCollection[0].GetElementsByTagName("TH");
int xName = -1;
int xEmail = -1;
int nIndex = 0;
foreach (HtmlElement trItem in trCollection)
{
Debug.WriteLine(trItem.InnerText);
string strHeading = trItem.InnerText.Trim().ToLower();
if (strHeading.Equals("name"))
xName = nIndex;
if (strHeading.Equals("email"))
xEmail = nIndex;
nIndex++;
}
The documentation will offer further examples, or you could search the CodeProject articles for more samples.