| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How To: Opt Out of File Dialog Box Automatic Upgrade |
03/30/2017 |
.net-framework |
|
article |
|
|
522e482e-cc01-48b1-8d59-9617dc2c4ac1 |
11 |
dotnet-bot |
dotnetcontent |
wpickett |
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 [!INCLUDEdnprdnext] or earlier is displayed on [!INCLUDEwiprlhext], xref:System.Windows.Forms.OpenFileDialog and xref:System.Windows.Forms.SaveFileDialog are automatically displayed with the [!INCLUDEwiprlhext] appearance and behavior. Starting in the [!INCLUDEnet_v30_short], you can opt out of the automatic upgrade to display the xref:System.Windows.Forms.OpenFileDialog and xref:System.Windows.Forms.SaveFileDialog with a [!INCLUDEwinxp]-style appearance and behavior.
To opt out of file dialog box automatic upgrade
- Set the xref:System.Windows.Forms.FileDialog.AutoUpgradeEnabled%2A property of xref:System.Windows.Forms.OpenFileDialog or xref:System.Windows.Forms.SaveFileDialog to
falsebefore you display the dialog box.
See Also
xref:System.Windows.Forms.FileDialog