Click here to Skip to main content
15,917,320 members

Comments by Member 9665875 (Top 23 by date)

Member 9665875 22-May-17 15:33pm View    
Thank you for your fast response, can you help me out further please, i have this currently, where am i going wrong please?

HtmlElementCollection theElementCollection = default(HtmlElementCollection);
theElementCollection = webBrowser1.Document.GetElementsByTagName("div");
foreach (HtmlElement curElement in theElementCollection)
{
if (curElement.GetAttribute("className").ToString() == "ng-scope")
{
HtmlElementCollection childDivs = curElement.Children.GetElementsByName("strong");
foreach (HtmlElement childElement in childDivs)
{
MessageBox.Show(childElement.InnerText);
}

}
}
Member 9665875 22-May-17 15:05pm View    
Deleted
Thank you for your fast response, can you help me out further please, i have this currently, where am i going wrong please?

HtmlElementCollection theElementCollection = default(HtmlElementCollection);
theElementCollection = webBrowser1.Document.GetElementsByTagName("div");
foreach (HtmlElement curElement in theElementCollection)
{
if (curElement.GetAttribute("className").ToString() == "ng-scope")
{
HtmlElementCollection childDivs = curElement.Children.GetElementsByName("strong");
foreach (HtmlElement childElement in childDivs)
{
MessageBox.Show(childElement.InnerText);
}

}
}
Member 9665875 21-May-17 17:49pm View    
i have thank you, i just failed to include it
Member 9665875 19-Mar-14 17:19pm View    
this is what i would like though
Member 9665875 19-Mar-14 17:08pm View    
the textbox must only contain letters and not numbers in any part of the textbox