Vb.net 使用通配符筛选列表框
我想使用通配符对列表框应用过滤器。用户可以向ArrayList添加多个筛选器,如下所示(示例): 以便删除列表框中与其中一项不匹配的所有项 列表框中的每个项目Vb.net 使用通配符筛选列表框,vb.net,Vb.net,我想使用通配符对列表框应用过滤器。用户可以向ArrayList添加多个筛选器,如下所示(示例): 以便删除列表框中与其中一项不匹配的所有项 列表框中的每个项目 @TimSchmelter谢谢你,我想我没有使用正确的搜索词来结束这里。 Dim myList As New ArrayList myList.Add(1.2*.txt) myList.Add(data_jan*.iso) Dim didMatch as Boolean = False For i = 0 To myList.Count
@TimSchmelter谢谢你,我想我没有使用正确的搜索词来结束这里。
Dim myList As New ArrayList
myList.Add(1.2*.txt)
myList.Add(data_jan*.iso)
Dim didMatch as Boolean = False
For i = 0 To myList.Count - 1
If *matched wildcard* Then didMatch = true
Next
If not didMatch then Form1.lbFiles.Items.Remove(*CurrentItemInListbox*)