title: listBox not displaying content until program is recompiled c#
body: <p>I'm able to display items in a listbox which are filenames from a directory. Newly added items are not displaying until the program is recompiled. I've tried "ListBox.Refresh()", but it didn't work. Any advice would be much appreciated. Thanks </p>
  
  <pre><code>     InitializeComponentDirectoryInfo dir = new DirectoryInfo(".\\Notes\\");
          FileInfo[] files = dir.GetFiles("*.txt");
      foreach (FileInfo file in files)
          {
           listBox1.Items.Add(file);
          }
  </code></pre>