How to get the text value from a textarea from a web browser control in C#
<p>How can I get the text value from a textarea from a web browser control in C#. If I don't know the ID or the Name of the textarea?</p>

<pre><code>  var element1 = webBrowser1.Document.GetElementsByTagName("textarea");
  foreach (HtmlElement el in element1) {
    //GET THE TEXT
  }
</code></pre>

<p>EDIT: <code>&lt;textarea name="message"&gt;&lt;/textarea&gt;</code> </p>

<p>How would I get the value?</p>
