Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 .net 网络浏览器将文本插入 textarea?我尝试了很多方法,但都没有奏效
这是我的尝试
HtmlElement element4 = WebBrowser1.Document.GetElementById("description"); element4.SetAttribute("value", "text");
但正如我所说,他们都没有工作
就像是:
element4.InnerText = "text";
假设GetElementById工作并且您在 中具有有效的参考element4,那么应该这样做。
GetElementById
element4