title: FileSystem.CopyDirectory with UIOption.AllDialogs does not display a dialog from within a specific part of my program
body: <p>I'm having a hard time figuring out what I'm doing wrong. I use <code>FileSystem.CopyDirectory</code> so I can display a native copy dialog using <code>UIOption.AllDialogs</code>. In one part of my program, this works perfectly fine. In another part, it copies, but doesn't display the dialog at all.</p>
  
  <p>This is the part that does not display a dialog:</p>
  
  <pre><code> private void saveBackupButton_Click(object sender, EventArgs e)
      {
          try
          {
              FileSystem.CopyDirectory(SelectedProfile.FolderPath + saveFolderPath, SelectedProfile.FolderPath + backupSavePath + DateTime.Now.ToString("dd.MM.yy HH.mm.ss"), UIOption.AllDialogs);
          }
          catch(Exception ex)
          {
              //stuff
          }
      }
  </code></pre>
  
  <p>The part that works fine is on another form, looks like this:</p>
  
  <pre><code>private void Copy()
      {
          try
          {
              FileSystem.CopyDirectory(strCopyFromPath, strCopyToPath, UIOption.AllDialogs, UICancelOption.ThrowException);
          }
          catch (Exception e)
          {
              //stuff
          }
       }
  </code></pre>
  
  <p>I've tried making a new project in VS and just only having the top code executing from a click of a button, and it works fine everytime. But when I try it from the program, it doesn't display the dialog.</p>