Return to Snippet

Revision: 20642
at November 20, 2009 12:21 by jimfred


Initial Code
// Example usage. See URL for implementation.

InputBoxDialog ib = new InputBoxDialog();

ib.FormPrompt = prompt;
ib.FormCaption = title;
ib.DefaultValue = defaultValue;

ib.ShowDialog();

string s = ib.InputResponse;

ib.Close();

Initial URL
http://www.knowdotnet.com/articles/inputbox.html

Initial Description
The URL has code for an InputBoxDialog class that implements a simple input dialog.

The button flatstyle property might need to be changed to match the default.

Initial Title
Input Box, similar to MessageBox, displays a prompt and accepts a string from the user.

Initial Tags

                                

Initial Language
C#