G
Guest
hi
i try to find one specific entry in my listbox and i do get the 'not
supported method' error why? and how to find a entry in a listbox? i want to
key in "a" and i it should sort by "a" then i press "p" and now i wana see
all starting with "ap" like "apple". anyone knows whats with wrong with this
listboxes in cf?
cheers kune
in the help example i find this:
ListBox.FindString Method (String)
the Example tells me:
Private Sub FindMyString(ByVal searchString As String)
' Ensure we have a proper string to search for.
If searchString <> String.Empty Then
' Find the item in the list and store the index to the item.
Dim index As Integer = listBox1.FindString(searchString)
' Determine if a valid index is returned. Select the item if it is
valid.
If index <> -1 Then
listBox1.SetSelected(index, True)
Else
MessageBox.Show("The search string did not match any items in the
ListBox")
End If
End If
End Sub
and the platform says this:
..NET Framework
Supported in: 2.0, 1.1, 1.0
- - WHY SHOULD ID NOT B SUPPURTED THEN? DO I GET THAT WRONG? - -
i try to find one specific entry in my listbox and i do get the 'not
supported method' error why? and how to find a entry in a listbox? i want to
key in "a" and i it should sort by "a" then i press "p" and now i wana see
all starting with "ap" like "apple". anyone knows whats with wrong with this
listboxes in cf?
cheers kune
in the help example i find this:
ListBox.FindString Method (String)
the Example tells me:
Private Sub FindMyString(ByVal searchString As String)
' Ensure we have a proper string to search for.
If searchString <> String.Empty Then
' Find the item in the list and store the index to the item.
Dim index As Integer = listBox1.FindString(searchString)
' Determine if a valid index is returned. Select the item if it is
valid.
If index <> -1 Then
listBox1.SetSelected(index, True)
Else
MessageBox.Show("The search string did not match any items in the
ListBox")
End If
End If
End Sub
and the platform says this:
..NET Framework
Supported in: 2.0, 1.1, 1.0
- - WHY SHOULD ID NOT B SUPPURTED THEN? DO I GET THAT WRONG? - -