I've got this code:
for (int i = listboxWork.Items.Count-1; i > -1; i--)
{
if (listboxWork.Items[i].Contains(tblSent))
{
listboxWork.Items.RemoveAt(i);
}
}
...which I derived from here, but my creaky old version of .NET (or maybe it's my puny version of .NET (Compact Framework) that's the problem) doesn't contain "Contains".
I reckon I could replace that line with:
if (listboxWork.Items[i].ToString().IndexOf(tblSent) > -1)
...but am not overly confident that's the best way to do it. Is there a more acceptable way?