DialogsInputDialog(String, String, String, Int32, Int32) 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? caption,
	string? prompt,
	ref string value,
	int x,
	int y
)

Parameters

caption  String
The caption of the dialog. If , the name of the application is used.
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.
x  Int32
The initial horizontal position of the dialog.
y  Int32
The initial vertical position of the dialog.

Return Value

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

See Also