08-01-2013, 11:22 PM
According to MSDN:
2
FindString has 2 overloads:
2
Have you looked at this:
2
List<int> foundIndexes = new List<int>();
int index = -1, firstIndex = -1;
while ((index = listBox1.FindString("test", index)) !=-1){
if(index == firstIndex ){
break;
}
if (firstIndex == -1){
firstIndex = index;
}
foundIndexes.Add(index);
}
FindString only looks for string that starts with your string, if you want to search for strings that are exactly like your string use FindStringExact:
2
2
thanks. tomorrow i will try it and i post here.

