U
U
Uncle Bogdan2021-05-30 19:41:49
C++ / C#
Uncle Bogdan, 2021-05-30 19:41:49

How can I fix the scaling/look of the Label?

There is a problem with the type of Labels. LOOKS VERY STRANGE.
Photo:
60b3bfd5e7cae000079609.png
Code:

C# and HtmlAgilityPack
private void Parce()
        {
            try
            {
                WebBrowserFrameLoadEnded();
                HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
                doc.LoadHtml(html);
                HtmlNodeCollection node = doc.DocumentNode.SelectNodes("//*[@id='gr_case_partps']/table/tbody/tr/td[1]/div/ul/li/span/a");
                Plaintiffs.Text = "Истцы:\n" + node[0].InnerText.Replace(" ", "");

                node = doc.DocumentNode.SelectNodes("//*[@id='gr_case_partps']/table/tbody/tr/td[2]/div/ul/li/span/a");
                defendant.Text = "Ответчики:\n" + node[0].InnerText.Replace(" ", "");

                node = doc.DocumentNode.SelectNodes("//*[@id='chrono_list_content']/div/div/div[1]/div[2]/h4/span[2]/span/a");
                judje.Text = "Суд:\n" + node[0].InnerText.Replace(" ", "");
            }
            catch(Exception EXCEPTION)
            {
                MessageBox.Show(EXCEPTION.Message);
            }
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2021-05-31
@SaNNy32

https://docs.microsoft.com/ru-ru/dotnet/api/system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question