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 Webブラウザを使用してテキストエリアにテキストを挿入する方法は?私は多くの方法を試しましたが、どれもうまくいきませんでした
これが私の試みです
HtmlElement element4 = WebBrowser1.Document.GetElementById("description"); element4.SetAttribute("value", "text");
しかし、私が言ったように、それらのどれも機能しませんでした
何かのようなもの:
element4.InnerText = "text";
GetElementByIdうまくいき、有効な参照が にあると仮定するとelement4、これでうまくいくはずです。
GetElementById
element4