Class InputBox
- Namespace
- NanoByte.Common.EtoControls
- Assembly
- NanoByte.Common.EtoForms.dll
Shows a simple dialog asking the user to input some text.
public static class InputBox
- Inheritance
-
objectInputBox
Methods
Show(Control?, string, string, string?, bool)
Displays an input box asking the user to input some text.
public static string? Show(Control? owner, string title, string prompt, string? defaultText = null, bool password = false)
Parameters
ownerControlThe parent window the displayed window is modal to; can be
null.titlestringThe window title to use.
promptstringThe prompt to display.
defaultTextstringThe default text to show pre-entered in the input field.
passwordboolShall the input characters be hidden as a password?
Returns
- string
The text the user entered if they pressed OK; otherwise
null.