Set Value of a TextArea inside a WebBrowser Control (C# / .NET)
I'm looking to set the value of a TextArea using the .NET WebBrowser Control. I have been able to set the values of textboxes using the following code (replace "username" with the name of the texbox): webBrowser1.Document.All.GetElementsByName("username")[0].SetAttribute("Value", "SomeUser"); 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