Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-opt-out-of-file-dialog-box-automatic-upgrade.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.6 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How To: Opt Out of File Dialog Box Automatic Upgrade 03/30/2017
OpenFileDialog [Windows Forms], opt out of automatic upgrade
file dialog box [Windows Forms], opt out of automatic upgrade
Windows Vista file dialog box [Windows Forms], opt out of automatic upgrade
SaveFileDialog [Windows Forms], opt out of automatic upgrade
AutoUpgradeEnabled property
522e482e-cc01-48b1-8d59-9617dc2c4ac1

How To: Opt Out of File Dialog Box Automatic Upgrade

When the xref:System.Windows.Forms.OpenFileDialog and xref:System.Windows.Forms.SaveFileDialog classes are used in an application, their appearance and behavior depend on the version of Windows the application is running on. When an application that was created on the .NET Framework 2.0 or earlier is displayed on Windows Vista, xref:System.Windows.Forms.OpenFileDialog and xref:System.Windows.Forms.SaveFileDialog are automatically displayed with the Windows Vista appearance and behavior. Starting in the .NET Framework 3.0, you can opt out of the automatic upgrade to display the xref:System.Windows.Forms.OpenFileDialog and xref:System.Windows.Forms.SaveFileDialog with a Windows XP-style appearance and behavior.

To opt out of file dialog box automatic upgrade

  1. Set the xref:System.Windows.Forms.FileDialog.AutoUpgradeEnabled%2A property of xref:System.Windows.Forms.OpenFileDialog or xref:System.Windows.Forms.SaveFileDialog to false before you display the dialog box.

See also