Hello.
Can somebody help me please to remove blank lines from listbox?
And remove specified text from listbox (text line that i can specify in form code(But if i specify to remove line something like "http://www.google.com/" it will remove the line "http://www.google.com/" but doesn't remove line "http://www.google.com/chrome/" etc ). Please help me somebody because i searched for hours in google, but can't find anything... Sorry for my english. I hope you understand what i want, because i'm a complete newbie with VB.
I use Microsoft Visual Studio 2008
My code for adding items to listbox is:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim PageElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img")
For Each CurElement As HtmlElement In PageElements
ListBox1.Items.Add(CurElement.GetAttribute("src") & Environment.NewLine)
Next
End Sub