A
Andy B
I have the following code inside of a WebBrowser.DocumentCompleted event:
For index As Integer = 0 To
Me.Browser.Document.GetElementsByTagName("ul").Item(0).GetElementsByTagName("li").Count
NotesList.Items.Add(Me.Browser.Document.GetElementsByTagName("ul").Item(0).GetElementsByTagName("li").Item(index).InnerText)
Next index
For some reason, nothing after the next index will run. It's like everything
after it gets ignored. Even when I just use next it doesn't work (although I
get the wrong data if I do that). How do you fix this?
For index As Integer = 0 To
Me.Browser.Document.GetElementsByTagName("ul").Item(0).GetElementsByTagName("li").Count
NotesList.Items.Add(Me.Browser.Document.GetElementsByTagName("ul").Item(0).GetElementsByTagName("li").Item(index).InnerText)
Next index
For some reason, nothing after the next index will run. It's like everything
after it gets ignored. Even when I just use next it doesn't work (although I
get the wrong data if I do that). How do you fix this?