title: How to pull chat messages from HTML website to application
body: <p><strong>Intro</strong></p>
  
  <p>Hello, the following <em>HTML</em> code below is from a specific website where I want to read the chatmessages and display them (with the user's name) in my window form coded in csharp with the .net framework.</p>
  
  <p>Assuming I do not know what the current message ID is when I direct myself to the website chat, how would I grab the current inputted message and 'paste' it on my form (maybe inside a label text or list-view)</p>
  
  <p>I assume I would have to use a web-browser to redirect myself to the web page first and then use the functions such as "webBrowser.Document.GetElementByID..."; however, is there any better way to code this without including in my form a webBrowser control?</p>
  
  <p><em>HTML code</em></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  ‌¶
  &lt;body data-twttr-rendered="true"&gt;
  ‌¶
  &lt;div id="header"&gt;
  ‌¶
  &lt;div id="content"&gt;
  ‌¶
  &lt;div style="width: 680px; float: left;"&gt;
  ‌¶
  &lt;div style="width: 320px; float: left;"&gt;
  ‌¶
  &lt;div class="block"&gt;
  ‌¶
  &lt;div id="nChatCon"&gt;
  ‌¶
  &lt;div id="nChat"&gt;
  &lt;p id="msg8245729" class="chatmessage"&gt;
  &lt;p id="msg8245730" class="chatmessage"&gt;
  &lt;p id="msg8245731" class="chatmessage"&gt;
  &lt;p id="msg8245732" class="chatmessage"&gt;
  &lt;p id="msg8245733" class="chatmessage"&gt;
  &lt;p id="msg8245735" class="chatmessage"&gt;
  &lt;p id="msg8245736" class="chatmessage"&gt;
  &lt;p id="msg8245737" class="chatmessage"&gt;
  &lt;p id="msg8245738" class="chatmessage"&gt;
  &lt;p id="msg8245739" class="chatmessage"&gt;
  &lt;p id="msg8245740" class="chatmessage"&gt;
  &lt;p id="msg8245742" class="chatmessage"&gt;
  &lt;p id="msg8245743" class="chatmessage"&gt;
  &lt;p id="msg8245744" class="chatmessage"&gt;
  &lt;p id="msg8245745" class="chatmessage"&gt;
  &lt;p id="msg8245747" class="chatmessage"&gt;
  &lt;p id="msg8245749" class="chatmessage"&gt;
  &lt;p id="msg8245754" class="chatmessage"&gt;
  &lt;p id="msg8245755" class="chatmessage"&gt;
  &lt;p id="msg8245756" class="chatmessage"&gt;
  &lt;p id="msg8245757" class="chatmessage"&gt;
  &lt;p id="msg8245758" class="chatmessage"&gt;
  &lt;p id="msg8245759" class="chatmessage"&gt;
  &lt;p id="msg8245760" class="chatmessage"&gt;
  &lt;p id="msg8245761" class="chatmessage"&gt;
  &lt;p id="msg8245763" class="chatmessage"&gt;
  &lt;p id="msg8245764" class="chatmessage"&gt;
  &lt;p id="msg8245766" class="chatmessage"&gt;
  &lt;p id="msg8245767" class="chatmessage"&gt;
  &lt;p id="msg8245768" class="chatmessage"&gt;
  &lt;p id="msg8245769" class="chatmessage"&gt;
  &lt;p id="msg8245770" class="chatmessage"&gt;
  &lt;p id="msg8245771" class="chatmessage"&gt;
  &lt;p id="msg8245772" class="chatmessage"&gt;
  &lt;p id="msg8245773" class="chatmessage"&gt;
  &lt;p id="msg8245774" class="chatmessage"&gt;
  &lt;p id="msg8245775" class="chatmessage"&gt;
  &lt;p id="msg8245778" class="chatmessage"&gt;
  &lt;p id="msg8245780" class="chatmessage"&gt;
  &lt;p id="msg8245781" class="chatmessage"&gt;
  &lt;a onclick="nChatMenu(181203, "Radeon_", 8245781, event)" href="javascript:void(0)" style="color: #8da0b9; font-weight: bold;" title="22.11.13 00:12:32"&gt;Radeon_&lt;/a&gt;
  :‌·
  &lt;span&gt;You‌·guys‌·have‌·gone‌·full‌·retard.&lt;/span&gt;
  &lt;/p&gt;
  &lt;/div&gt;
  ‌¶
  &lt;div id="nChatErrors"&gt;test&lt;/div&gt;
  ‌¶
  &lt;div id="nChatLockIcon" class="main-s main-s-lock"&gt;&lt;/div&gt;
  ‌¶
  &lt;b style="text-align:center;"&gt;Sign‌·in‌·to‌·write.&lt;/b&gt;
  ‌¶
  &lt;input id="nChat-lm" type="hidden" value="1385064757"&gt;
  ‌¶
  &lt;input id="chat-token" type="hidden" value=""&gt;
  ‌¶
  &lt;/div&gt;
  ‌¶
  &lt;div id="cMenu" class="popup block"&gt;
  &lt;/div&gt;
  ‌¶
  &lt;div class="block"&gt;
  ‌¶
  &lt;div class="block" data-twttr-id="twttr-sandbox-0"&gt;
  ‌¶
  &lt;div class="block"&gt;
  ‌¶
  &lt;div class="block"&gt;
  ‌¶
  &lt;/div&gt;
  ‌¶
  &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/div&gt;
  ‌¶
  </code></pre>
  
  <p>I hope some of you understand what I am trying to accomplish and I appreciate anything to help me.</p>
  
  <p>Thanks.</p>