Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uzitech/inputbox

C# Input dialog for accepting information.
https://github.com/uzitech/inputbox

Last synced: 19 days ago
JSON representation

C# Input dialog for accepting information.

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);
}
```
![](http://uzitech.github.io/images/inputbox1.png)