Table of Contents

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
object
InputBox

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

owner Control

The parent window the displayed window is modal to; can be null.

title string

The window title to use.

prompt string

The prompt to display.

defaultText string

The default text to show pre-entered in the input field.

password bool

Shall the input characters be hidden as a password?

Returns

string

The text the user entered if they pressed OK; otherwise null.