〇テキストボックスから取得
HtmlElement element = webBrowser1.Document.GetElementById("text");
textBox1.Text = element.InnerText;
〇テーブルから取得
HtmlElementCollection TABLE_name =
webBrowser1.Document.GetElementsByTagName("table");
foreach (HtmlElement element in TABLE_name)
{
if (element.GetAttribute("width") == "100%" && element.GetAttribute("cellpadding") == "0" && element.GetAttribute("cellspacing") == "0" && element.GetAttribute("border") == "0")
{
if (element.InnerHtml != null && element.InnerHtml.IndexOf("P") == 22)
{
//listBox1.Items.Add(x.ToString() + " : " + element.InnerHtml.IndexOf("P").ToString() + " : " + element.InnerHtml);
//x++;
st = "
"+element.InnerHtml+"
";
st2 = element.InnerText ;
// this.Close();
}
}
}