I am working with a .NET 3.5 application that uses System.Windows.Forms.OpenFileDialog. However, no matter what I do, only the XP-Style version is displayed in the dialog that opens. I made the code as simple as possible:
OpenFileDialog openFileDialog = new OpenFileDialog() //openFileDialog.AutoUpgradeEnabled = true; //Adding this line does nothing if(DialogResult.OK == openFileDialog.ShowDialog()) { ... }
No matter what I do, the old version of XP-Style is always displayed in the dialog box instead of the new version of Vista +. I also noticed that when I debug and look at some parameters, there is a protected member variable somewhere in the chain: SettingsSupportVistaDialog , which in this case is set to false . I am not sure if this is a problem, or where / why it can be fixed.
Does anyone have any suggestions?
Here is a screenshot of the existing dialog (XP-style) 
Here is what I want it to look like this: 
source share