Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Alright, so I can't figure out what is wrong with this code for the life of me.
[code] Dim ta As HtmlElementCollection = browser.Document.Body.GetElementsByTagName("textarea")
For i As Integer = 0 To ta.Count - 1
ta(i).SetAttribute("value", "textarea" & i)
Every time I run my program I receive a NullReferenceException pointing to my dim statement.