I've wasted 2 days to find out, that there's a known memory leak in WebBrowser control(since 2007 or so and still, they havent fixed it) so I've decided to simply ask here, how to do the thing I need.
Till now, (using WebBrowser...), I've been visiting a site, (ctrl+a), paste it to a string and that was all. I had text content of a web page in my string. Worked perfectly untill I found out that it takes 1 gb of memory after some time. Is it possible to do that through HttpWebRequest, httpwebclient or anything?
Thanks for replies, there wasn't any thread like that (or I havent found any, searching didnt really take me much coz Im really pissed off now :P)
FORGOT TO ADD: I don't want HTML code, I know it's possible to get it easily. In my case, html code is useless. I do need the text user see while opening the page with internet browser.
Why don't you use the free open source HTML scraper like Ncrawler.
It is written in c#.
You can get examples on how to use it here.