Dialogs Class

Provides static methods for showing common dialogs.

Definition

Namespace: KGySoft.WinForms.Forms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static class Dialogs
Inheritance
Object    Dialogs

Remarks

  Tip

If your application uses per-monitor DPI awareness, it is recommended to set the UseTaskDialogs property to in the startup code of your application.

Properties

AutoRightToLeftLayout Gets whether right-to-left layout is automatically applied to the dialogs when the current UI culture is right-to-left.
Default value: .
DialogsOwner Gets or sets a common owner for the message dialogs when the owner is not specified in the dialog showing methods.
Default value: .
UseAdvancedDialogs Gets or sets whether an AdvancedMessageDialog instance is used for message dialogs. This option does not support right-to-left layout, default button selection, and high DPI scaling.
Default value: .
Obsolete
UseTaskDialogs Gets or sets whether a TaskDialog instance should be used when calling the message dialog methods of this class.
Default value: .

Methods

CancellableConfirmMessage(String, MessageBoxDefaultButton) Shows a confirmation message dialog with Yes, No and Cancel buttons.
CancellableConfirmMessage(IWin32Window, String, String, MessageBoxDefaultButton) Shows a confirmation message dialog with Yes, No and Cancel buttons.
ConfirmMessage(String) Shows a confirmation message dialog with Yes and No buttons.
ConfirmMessage(Boolean, String) Shows a confirmation message dialog with Yes, No, and an optional Cancel button.
This method is obsolete. To show a confirmation dialog with Yes, No and Cancel buttons, use the CancellableConfirmMessage(String, MessageBoxDefaultButton) method instead.
Obsolete
ConfirmMessage(String, Boolean) Shows a confirmation message dialog with Yes and No buttons.
See the Remarks section of the ConfirmMessage(String) overload for more details.
ConfirmMessage(String, Object) Shows a confirmation message dialog with Yes and No buttons.
Obsolete
ConfirmMessage(Boolean, String, Object) Shows a confirmation message dialog with Yes, No, and an optional Cancel button.
This method is obsolete. To show a confirmation dialog with Yes, No and Cancel buttons, use the CancellableConfirmMessage(String, MessageBoxDefaultButton) method instead.
Obsolete
ConfirmMessage(IWin32Window, String, String, Boolean) Shows a confirmation message dialog with Yes and No buttons.
See the Remarks section of the ConfirmMessage(String) overload for more details.
ErrorMessage(String) Shows an error message dialog with an OK button.
ErrorMessage(String, Object) Shows an error message dialog with an OK button.
Obsolete
ErrorMessage(IWin32Window, String, String) Shows an error message dialog with an OK button.
See the Remarks section of the ErrorMessage(String) overload for more details.
InfoMessage(String) Shows an information message dialog with an OK button.
InfoMessage(String, Object) Shows an information message dialog with an OK button.
Obsolete
InfoMessage(IWin32Window, String, String) Shows an information message dialog with an OK button.
See the Remarks section of the InfoMessage(String) overload for more details.
InputDialog(String) Displays an input dialog with an editable value, and OK and Cancel buttons.
See the Remarks section of the InputDialog(IWin32Window, String, String, String) overload for more details.
InputDialog(IWin32Window, String) Displays an input dialog with an editable value, and OK and Cancel buttons.
See the Remarks section of the InputDialog(IWin32Window, String, String, String) overload for more details.
InputDialog(String, String) Displays an input dialog with an editable value, and OK and Cancel buttons.
See the Remarks section of the InputDialog(IWin32Window, String, String, String) overload for more details.
InputDialog(IWin32Window, String, String) Displays an input dialog with an editable value, and OK and Cancel buttons.
See the Remarks section of the InputDialog(IWin32Window, String, String, String) overload for more details.
InputDialog(String, String, String) Displays an input dialog with an editable value, and OK and Cancel buttons.
See the Remarks section of the InputDialog(IWin32Window, String, String, String) overload for more details.
InputDialog(IWin32Window, String, String, String) Displays an input dialog with an editable value, and OK and Cancel buttons.
InputDialog(String, String, String, Int32, Int32) Displays an input dialog with an editable value, and OK and Cancel buttons.
See the Remarks section of the InputDialog(IWin32Window, String, String, String) overload for more details.
InputDialog(IWin32Window, String, String, String, Int32, Int32) Displays an input dialog with an editable value, and OK and Cancel buttons.
See the Remarks section of the InputDialog(IWin32Window, String, String, String) overload for more details.
WarningMessage(String) Shows a warning message dialog with an OK button.
WarningMessage(String, Object) Shows a warning message dialog with an OK button.
Obsolete
WarningMessage(IWin32Window, String, String) Shows a warning message dialog with an OK button.
See the Remarks section of the WarningMessage(String) overload for more details.

See Also