title: Set Value of a TextArea inside a WebBrowser Control (C# / .NET)
body: <p>I'm looking to set the value of a TextArea using the .NET WebBrowser Control.</p>
  
  <p>I have been able to set the values of textboxes using the following code (replace "username" with the name of the texbox):</p>
  
  <pre><code>webBrowser1.Document.All.GetElementsByName("username")[0].SetAttribute("Value", "SomeUser");
  </code></pre>
  
  <p>I tried using similar code on a TextArea (using GetElementById) and failed to remember that TextArea input types do not contain a "Value" attribute. I have also tried setting the InnerHtml and InnerText of the TextArea but the compiler continues to throw null reference exception errors or index out of bounds errors when trying set the value of the TextArea input. </p>
  
  <p>Does anyone have any idea on how to set the text inside a TextArea using the WebBrowser Control?  Any advice would be much appreciated! </p>