DialogsInputDialog(String, String) Method

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.

Definition

Namespace: KGySoft.WinForms.Forms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static bool InputDialog(
	string? prompt,
	ref string value
)

Parameters

prompt  String
A prompt text, explaining the purpose of the input dialog. If , a localized string of Value: is used.
value  String
A reference to a string that contains the initial value of the input field. When this method returns , this parameter will contain the value entered by the user.

Return Value

Boolean
if the user clicked OK or pressed Enter, if the user clicked Cancel, pressed Esc or closed the dialog.

See Also