DialogsInputDialog(IWin32Window, String, String) Method
Namespace: KGySoft.WinForms.FormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static bool InputDialog(
IWin32Window? owner,
string? prompt,
ref string value
)
Public Shared Function InputDialog (
owner As IWin32Window,
prompt As String,
ByRef value As String
) As Boolean
public:
static bool InputDialog(
IWin32Window^ owner,
String^ prompt,
String^% value
)
static member InputDialog :
owner : IWin32Window *
prompt : string *
value : string byref -> bool
- owner IWin32Window
- An optional window that will own the modal input dialog. If , the DialogsOwner property will be taken.
If DialogsOwner is also , the currently active window will be 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.
Boolean if the user clicked OK or pressed Enter,
if the user clicked Cancel, pressed Esc or closed the dialog.