DialogsConfirmMessage(String, Object) Method
Note: This API is now obsolete.
Shows a confirmation message dialog with Yes and No buttons.
Namespace: KGySoft.WinForms.FormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
[ObsoleteAttribute("Use ConfirmMessage(string) with an already localized message instead.")]
public static bool ConfirmMessage(
string message,
params Object[] args
)
<ObsoleteAttribute("Use ConfirmMessage(string) with an already localized message instead.")>
Public Shared Function ConfirmMessage (
message As String,
ParamArray args As Object()
) As Boolean
public:
[ObsoleteAttribute(L"Use ConfirmMessage(string) with an already localized message instead.")]
static bool ConfirmMessage(
String^ message,
... array<Object^>^ args
)
[<ObsoleteAttribute("Use ConfirmMessage(string) with an already localized message instead.")>]
static member ConfirmMessage :
message : string *
args : Object[] -> bool
- message String
- Message with placeholders in invariant language.
- args Object
- Arguments for placeholders
Boolean if the user clicked Yes,
if No was clicked or the dialog was closed.
This overload does not translate the
message parameter anymore, just removes the possibly existing distinction postfix,
and simply formats it with the
args parameters. See the
Remarks section of the
ConfirmMessage(String) overload for more details.