|I can't reproduce this.
I took a forms project and added a new form called Form2.
On Form2 I added a button, and to this button a Click event handler
that does the following code (ripped from the MSDN docs):
FolderBrowserDialog folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
DialogResult result = folderBrowserDialog1.ShowDialog();
if (result == DialogResult.OK)
string folderName = folderBrowserDialog1.SelectedPath;
On my project's original Form1, I added a button with a Click event handler
to launch the Form2 modal like this:
Form2 subForm = new Form2();
Running this, closing the FolderBrowserDialog does not close Form2.
What have you done differently?
Microsoft MVP - Visual C++