Skip to content

[WinForms] Modernize FolderBrowserDialog #14153

@RussKie

Description

@RussKie

Modernize FolderBrowserDialog

See Modernization of the FolderBrowserDialog for updated documentation for this change.

Use a newer COM-based FolderBrowserDialog that was introduced in Windows Vista.

Version introduced

3.0 Preview1

Old behavior

.NET Framework folder browser dialog:
image

New behavior

The Vista-style dialog:
image

Reason for change

The Windows Forms FolderBrowserDialog used an old folder picker control. A newer COM-based control was introduced in Windows Vista, since .NET Core is limited to Windows 7 SP1 it made sense to update the dialog.

Recommended action

The dialog will be upgraded automatically.
If you desire to retain the original-style dialog set AutoUpgradeEnabled property to false before showing the dialog:

var dialog = new FolderBrowserDialog();
dialog.AutoUpgradeEnabled = false;
dialog.ShowDialog();

Category

  • Windows Forms

Affected APIs

Not detectable via API analysis


Issue metadata

  • Issue type: breaking-change

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changeIndicates a .NET Core breaking change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions