Setting a value of a TextArea inside a WebBrowser Control Error
<p>So there is the following textarea: </p>

<pre><code>&lt;textarea class="profile" name="message"&gt;&lt;/textarea&gt;
</code></pre>

<p>and I want to set the value of this textarea using code in C#. When I use the following code</p>

<pre><code> private void messageToolStripMenuItem_Click(object sender, EventArgs e)
  {
     webBrowser1.Document
     .GetElementsByTagName("textarea")
     .GetElementsByName("message")[0]
     .SetAttribute("value", "Something");

  }
</code></pre>

<p>I get the error: </p>

<pre><code>Value of '0' is not valid for 'index'. 'index' should be between 0 and -1.

Parameter name: index
</code></pre>

<p>How can I set the value of this textarea?</p>
