Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 518 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 518 Bytes

InputBox

C# Input dialog for accepting information.

Usage

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.Values["Username"], input.Values["Password"]);
}