How to change a HTML Textbox with C#
<p>I was wondering if anybody knew how to change the contents of a HTML TextBox with C# I have tried to use <code>body.SetAttribute("value", string)</code> but I did not get anywhere. An example of what I am trying to do is <code>&lt;textarea rows="2" cols="20" id="body" class="messages-reply-box text-box text new-message-body"&gt;</code><em>String I need changed</em><code>&lt;/textarea&gt;</code> Here is what I got so far:</p>

<pre><code>HtmlDocument doc = webBrowser1.Document;
HtmlElement bod = doc.GetElementById("body");
bod.SetAttribute("value", "text");
</code></pre>