https://github.com/uzitech/inputbox
C# Input dialog for accepting information.
https://github.com/uzitech/inputbox
Last synced: 3 months ago
JSON representation
C# Input dialog for accepting information.
- Host: GitHub
- URL: https://github.com/uzitech/inputbox
- Owner: UziTech
- License: mit
- Created: 2014-10-14T13:33:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:44:07.000Z (almost 2 years ago)
- Last Synced: 2025-07-25T07:48:20.031Z (4 months ago)
- Language: C#
- Size: 7.81 KB
- Stars: 12
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
InputBox
========
C# Input dialog for accepting information.
Usage
=====
```C#
string username = "user";//Get last username from registry or file
InputBoxItem[] items = new InputBoxItem[] {
new InputBoxItem("Username", username),
new InputBoxItem("Password", true)
};
InputBox input = InputBox.Show("Login", items, InputBoxButtons.OKCancel);
if (input.Result == InputBoxResult.OK)
{
doLogin(input.Items["Username"].Text, input.Items["Password"].Text);
}
```
