17-10-12, 05:04 PM
كاتب الموضوع : AhmedEssawy
لمسح كافة العناصر :كود :
ListBox1.DataSource = Nothing
ListBox1.Items.Clear()
كود :
ListBox1.DataSource = dt
ListBox1.DisplayMember = "ColumnName"
كود :
ListBox1.SelectedIndex = 1
كود :
Dim index As Integer
index = ListBox1.FindString("Maria")
If index <> ListBox.NoMatches Then
' Item found.
Else
' Item not found.
End If