ImageGear .NET v25.2 - Updated
InputBox Class
Members 




ImageGear.Art.Forms Assembly > ImageGear.ART.Forms Namespace : InputBox Class
Represents a window for prompting the user for an input string.
Object Model
InputBox Class
Syntax
'Declaration
 
<ToolboxItemFilterAttribute("System.Windows.Forms.Control.TopLevel")>
<ToolboxItemAttribute(False)>
<DesignTimeVisibleAttribute(False)>
<DesignerAttribute("System.Windows.Forms.Design.FormDocumentDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IRootDesigner)>
<DesignerCategoryAttribute("Form")>
<DefaultEventAttribute("Load")>
<InitializationEventAttribute("Load")>
<DefaultPropertyAttribute("Text")>
<DesignerSerializerAttribute("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
Public Class InputBox 
   Inherits System.Windows.Forms.Form
'Usage
 
Dim instance As InputBox
[ToolboxItemFilter("System.Windows.Forms.Control.TopLevel")]
[ToolboxItem(false)]
[DesignTimeVisible(false)]
[Designer("System.Windows.Forms.Design.FormDocumentDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IRootDesigner)]
[DesignerCategory("Form")]
[DefaultEvent("Load")]
[InitializationEvent("Load")]
[DefaultProperty("Text")]
[DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public class InputBox : System.Windows.Forms.Form 
[ToolboxItemFilter("System.Windows.Forms.Control.TopLevel")]
[ToolboxItem(false)]
[DesignTimeVisible(false)]
[Designer("System.Windows.Forms.Design.FormDocumentDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IRootDesigner)]
[DesignerCategory("Form")]
[DefaultEvent("Load")]
[InitializationEvent("Load")]
[DefaultProperty("Text")]
[DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public __gc class InputBox : public System.Windows.Forms.Form 
[ToolboxItemFilter("System.Windows.Forms.Control.TopLevel")]
[ToolboxItem(false)]
[DesignTimeVisible(false)]
[Designer("System.Windows.Forms.Design.FormDocumentDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IRootDesigner)]
[DesignerCategory("Form")]
[DefaultEvent("Load")]
[InitializationEvent("Load")]
[DefaultProperty("Text")]
[DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public ref class InputBox : public System.Windows.Forms.Form 
Remarks
It can be used to gather simple text or numeric input from the user without the need for creating a custom window.

It can also provide a search interface if the appropriate constructor used. In this case, a Find button is shown instead of an OK button. When the Find button is clicked, the given FindProc method is called and the window is not closed.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.ContainerControl
                  System.Windows.Forms.Form
                     ImageGear.ART.Forms.InputBox

See Also

Reference

InputBox Members
ImageGear.ART.Forms Namespace

Is this page helpful?
Yes No
Thanks for your feedback.