title: Foreach statement in listbox
body: <p>I have a problem with a foreach statement in my project. So far I have the code:</p>
  
  <pre><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);
          }
      }
  </code></pre>
  
  <p>I have this in a 1 second timer. It gets the item name all right, but when it gets to the <code>if</code> statements it says that they do not match, but they do?</p>