title: folderBrowserDialog does not work in c#
body: <p>when i click on the button to select a folder using folderBrowserDialog in c#
  the dialog is not shown and the result of dialog is set to <strong>Cancel</strong> automatically ..here is the code behind Button_Click :</p>
  
  <pre><code>private void glassButton1_Click(object sender, EventArgs e)
  {
      DialogResult result = folderBrowserDialog1.ShowDialog();//here Dialog is not shown and result=Cancel
      if (result==DialogResult.OK)
      {
          folderBrowserDialog1.ShowNewFolderButton = true;
          backupPath = folderBrowserDialog1.SelectedPath.ToString();
          if (Directory.Exists(backupPath))
              backupTextBox.Text = backupPath;
          //else MessageBox.Show("path is invalid", "error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
      }
  }
  </code></pre>
  
  <p>how can i fix it ? 
  thanks .</p>