darklexus2k9 Posted June 2, 2012 Share Posted June 2, 2012 ok well its simple i have a webbrowser controle in my application and the page i have open has a text box in it i need to put text into this text box i have been using the code bellow If WebBrowser1.Document.Body.InnerText.Contains("new msg") Then Dim htmlElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("textarea") For Each el As HtmlElement In htmlElements If el.GetAttribute("class").Equals("boxy") Then el.SetAttribute("Value", TextBox3.Text) End If Next postmsg.Stop() End If but i just notice there is a problem the textbox i need to put the text it on the webpage dose not have the value Attribute there for no text is entered :/ how can i get this to enter the text Quote Link to comment https://forums.phpfreaks.com/topic/263515-vbnet-enter-text-in-a-text-box-with-out-value-attribute-need-help-asap/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.