Get value from an html Windows Form c#

Asked

Viewed 22 times

1

Hello I would like to take this value, it is a class inside the other, I am trying this code but it does not return the value.

private void button1_Click(object sender, EventArgs e)
    {
        string s = string.Empty;
        foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("span"))

            if (el.GetAttribute("classname") == "point")
            {
                lb_show.Text = el.InnerText;
                //ou
                //lb_show.Text = el.InnerHTML;
            }

inserir a descrição da imagem aqui

  • the more the problem is not the same @bigown, I have to open two class

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.