Shows a simple dialog asking the user to input some text.
More...
|
static ? string | Show (IWin32Window? owner, [Localizable(true)] string title, [Localizable(true)] string prompt, [Localizable(true)] string? defaultText=null, bool password=false) |
| Displays an input box asking the the user to input some text. More...
|
|
|
override void | Dispose (bool disposing) |
| Clean up any resources being used. More...
|
|
Shows a simple dialog asking the user to input some text.
◆ Dispose()
override void NanoByte.Common.Controls.InputBox.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotected |
Clean up any resources being used.
- Parameters
-
disposing | true if managed resources should be disposed; otherwise, false. |
◆ Show()
static ? string NanoByte.Common.Controls.InputBox.Show |
( |
IWin32Window? |
owner, |
|
|
[Localizable(true)] string |
title, |
|
|
[Localizable(true)] string |
prompt, |
|
|
[Localizable(true)] string? |
defaultText = null , |
|
|
bool |
password = false |
|
) |
| |
|
inlinestatic |
Displays an input box asking the the user to input some text.
- Parameters
-
owner | The parent window the displayed window is modal to; can be null . |
title | The window title to use. |
prompt | The prompt to display. |
defaultText | The default text to show pre-entered in the input field. |
password | Shall the input characters be hidden as a password? |
- Returns
- The text the user entered if she pressed OK; otherwise
null
.
The documentation for this class was generated from the following files:
- Common.WinForms/Controls/InputBox.cs
- Common.WinForms/Controls/InputBox.Designer.cs