DialogsConfirmMessage(String, Boolean) Method

Shows a confirmation message dialog with Yes and No buttons.
See the Remarks section of the ConfirmMessage(String) overload for more details.

Definition

Namespace: KGySoft.WinForms.Forms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static bool ConfirmMessage(
	string message,
	bool isYesDefault
)

Parameters

message  String
The message to display in the confirmation dialog.
isYesDefault  Boolean
if the Yes button should be the default button, if No should be the default.

Return Value

Boolean
if the user clicked Yes, if No was clicked or the dialog was closed.

See Also