Click or drag to resize

InputDialog Class

Represents a dialog that allows the user to input a single text value.
Inheritance Hierarchy

Namespace:  Ookii.Dialogs
Assembly:  Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class InputDialog : Component, 
	IBindableComponent, IComponent, IDisposable

The InputDialog type exposes the following members.

Constructors
  NameDescription
Public methodInputDialog
Initializes a new instance of the InputDialog class.
Public methodInputDialog(IContainer)
Initializes a new instance of the InputDialog class, adding it to the specified container.
Top
Properties
  NameDescription
Public propertyBindingContext
Gets or sets the collection of currency managers for the InputDialog.
Protected propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyContent
Gets or sets the dialog's primary content.
Public propertyDataBindings
Gets the collection of data-binding objects for this InputDialog.
Protected propertyDesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Protected propertyEvents
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public propertyInput
Gets or sets the text specified by the user.
Public propertyMainInstruction
Gets or sets the dialog's main instruction.
Public propertyMaxLength
Gets or sets the maximum number of characters that can be entered into the input field of the dialog.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyUsePasswordMasking
Gets or sets a value that indicates whether the input will be masked using the system password character.
Public propertyWindowTitle
Gets or sets the window title of the dialog.
Top
Methods
  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Clean up any resources being used.
(Overrides ComponentDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnInputChanged
Raises the InputChanged event.
Protected methodOnOkButtonClicked
Raises the OkButtonClicked event.
Public methodShowDialog
Displays the input box as a modal dialog box.
Public methodShowDialog(IWin32Window)
Displays the input box as a modal dialog box with the specified owner.
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Public eventInputChanged
Event raised when the value of the Input property changes.
Public eventOkButtonClicked
Event raised when the user clicks the OK button on the dialog.
Top
Remarks
Using a modal dialog to ask the user for input is not often the best design decision. Carefully evaluate alternative methods, such as in-place editing, if applicable, before using this dialog.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also