CommonDialog.ShowDialog Method

 

Displays a common dialog.

Namespace:   Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)

NameDescription
System_CAPS_pubmethodShowDialog()

Displays a common dialog.

System_CAPS_pubmethodShowDialog(Window)

Displays a common dialog.

ShowDialog performs initialization tasks for all common dialogs before calling RunDialog. Since RunDialog requires an owner window, ShowDialog attempts to assign one in the following order of precedence:

  • The current application's active window.

  • The current application's parking window.

  • An internally generated hidden window.

UIPermission

to execute this method without raising of an exception. Associated enumeration: AllWindows

Return to top
Show: