title: Forms application "Not Responding" when copying large files?
body: <p>I've got a file organizer application I'm working on.  The files are regularly 500MB to 2GB.  Everything works fine, but it is extremely annoying that the application "Stops Responding."  What I'd like to do is a byte by byte or meg by meg copy with some Application.DoEvents() in there after each read/write action.  Something along these lines, I don't know what the actual classes to use would be so I'm just going to make some stuff up :)</p>
  
  <pre><code>private void CopyFile(string inFilename, string outFilename)
  {
      FileReader inReader(inFilename);
      FileWriter outWriter(outFilename, FileMode.OpenOrCreate);
  
      byte theByte;
      while (theByte = inReader.ReadByte())
      {
          outWriter.WriteByte(theByte, WriteMode.Append);
          UpdateProgressBar();
          Application.DoEvents();
      }
  
      inReader.CloseFile();
      outWriter.CloseFile();
  }
  </code></pre>
  
  <p>I know this seems like it should be a simple thing to do but I for the life of me can't seem to find any kind of example for doing this without using direct API calls or whatever.  I've got to be missing something here so if anyone could get me on the right track here I'd really appreciate it.</p>
  
  <p>Thanks in advance!</p>