0 Replies - 208 Views - Last Post: 10 December 2013 - 12:20 AM Rate Topic: -----

#1 markhaloce  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 24-October 13

How to show web content on app

Posted 10 December 2013 - 12:20 AM

foreach (HtmlElement psts in webBrowser1.document.GetElementsByTagName("div"))
            {
                if (psts.GetAttribute("classname").ToString() == "post-body entry-content") 
                {
                    textBox1.Text += psts.InnerText;
                }
            }


This code collects a post from a site and show it in a textbox of a windows form.

But the method "HtmlElement" is not available for store apps in visual studio 2012.
I want to get the web content from the browser and show it in a textblock in my app.

What is the code can I use instead of "HtmlElement" ?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1