title: Save HTML Source Code to string in WinForms Application
body: <p>I need to get the source code from a website, which is structured in frames.  </p>
  
  <p>I already have a Windows Forms Application which has the WebBrowser function integrated into it.<br>
  When I do a right click and select "View Source" it opens a new text document with exactly the info I need.  </p>
  
  <p>I already tried <code>webBrowser.Document</code>, <code>webBrowser.DocumentText</code> and <code>webBrowser.DocumentStream</code>, but all of these only give me other info, I don't need.  </p>
  
  <p>The website is not static (it's a chat) and it does not do sessions, thus I can't use <code>Webclient.DownloadFile</code>.<br>
  I need to have an ongoing connection to the website for several hours without refreshing the website. I don't see a way around using the <code>webBrowser</code> in <code>Windows Forms</code>.</p>
  
  <p>As requested, this is the website, I am talking about: <a href="http://server2.webkicks.de/stackoverflow-test/" rel="nofollow noreferrer">http://server2.webkicks.de/stackoverflow-test/</a><br>
  You can just log in as a guest, by filling some username in the third textbox.</p>