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