Dim document As XmlReader = New XmlTextReader("http://myxmlfilehehe.com") Dim thekeys As String While (document.Read) Dim type = document.NodeType If (type = XmlNodeType.Element) Then If (document.Name = "Key") Then thekeys = document.ReadInnerXml.ToString ComboBox1.Items.Add(thekeys) End If End If End While
After this piece of code is executed I need a way to filter out certain items within the combo box. I thought this would be relatively easy but it turns out I'm having problems. My first idea was to just do If ComboBox1.Items.Contains etc then remove the line, but I can't seem to find something that will let me do this. I need to filter out a few words so they don't show up in the list.