Archive

Archive for January 15, 2009

Locate an Item in a Windows Forms ListBox Control

January 15, 2009 programmervb 1 comment

Dim index As Integer
index = ListBox1.FindString(“Maria”)
If index <> ListBox.NoMatches Then
‘ Item found.
Else
‘ Item not found.
End If

Categories: VBNet

add an element to a XML Document

January 15, 2009 programmervb Leave a comment

Dim newElement As XMlNode
newElement=xmlDoc.CreateElement{“keyword”}
newElement.innerText=”Value”
xmlDoc.AppendChild{newElement}

Categories: VBNet