Hey, I have a problem with a foreach statement in my project.
So far I have the code:
foreach(object i in listboxFiles.Items)
{
if (i == ".ftpquota")
{
listboxFiles.Items.Remove(i);
}
if (i == ".")
{
listboxFiles.Items.Remove(i);
}
if (i == "..")
{
listboxFiles.Items.Remove(i);
}
}
I have this in a 1 second timer,
it gets the item name all right but when it gets to the if statements but it says that they do not match, but they do?
Any ideas?
Thanks.