C# Class WikiFunctions.Controls.InputBox

The InputBox class is used to show a prompt in a dialog box using the static method Show().
Copyright © 2003 Reflection IT This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. 2. No substantial portion of the source code of this library may be redistributed without the express written permission of the copyright holders, where "substantial" is defined as enough code to be recognizably from this library. Code from http://www.reflectionit.nl/blog/2003/c-inputbox Licence: Creative Commons Attribution By licenses
Inheritance: System.Windows.Forms.Form
ファイルを表示 Open project: reedy/AutoWikiBrowser

Public Methods

Method Description
Show ( string prompt, string title, string defaultText, InputBoxValidatingHandler validator ) : InputBoxResult

Displays a prompt in a dialog box, waits for the user to input text or click a button.

Show ( string prompt, string title, string defaultResponse, InputBoxValidatingHandler validator, int xpos, int ypos ) : InputBoxResult

Displays a prompt in a dialog box, waits for the user to input text or click a button.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InputBox ( ) : System
buttonCancel_Click ( object sender, EventArgs e ) : void
buttonOK_Click ( object sender, EventArgs e ) : void
textBoxText_TextChanged ( object sender, EventArgs e ) : void

Reset the ErrorProvider

textBoxText_Validating ( object sender, System e ) : void

Validate the Text using the Validator

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Show() public static method

Displays a prompt in a dialog box, waits for the user to input text or click a button.
public static Show ( string prompt, string title, string defaultText, InputBoxValidatingHandler validator ) : InputBoxResult
prompt string String expression displayed as the message in the dialog box
title string String expression displayed in the title bar of the dialog box
defaultText string String expression displayed in the text box as the default response
validator InputBoxValidatingHandler Delegate used to validate the text
return InputBoxResult

Show() public static method

Displays a prompt in a dialog box, waits for the user to input text or click a button.
public static Show ( string prompt, string title, string defaultResponse, InputBoxValidatingHandler validator, int xpos, int ypos ) : InputBoxResult
prompt string String expression displayed as the message in the dialog box
title string String expression displayed in the title bar of the dialog box
defaultResponse string String expression displayed in the text box as the default response
validator InputBoxValidatingHandler Delegate used to validate the text
xpos int Numeric expression that specifies the distance of the left edge of the dialog box from the left edge of the screen.
ypos int Numeric expression that specifies the distance of the upper edge of the dialog box from the top of the screen
return InputBoxResult