System.Windows.Forms 1.0.5000.0 2.0.0.0 System.Windows.Forms.UpDownBase System.Runtime.InteropServices.ComVisible(true) System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch) System.ComponentModel.DefaultBindingProperty("SelectedItem") System.ComponentModel.DefaultEvent("SelectedItemChanged") System.ComponentModel.DefaultProperty("Items") A control displays a single string value that is selected from an collection by clicking the up or down buttons of the control. The user can also enter text in the control, unless the property is set to true (the string typed in must match an item in the collection to be accepted). When an item is selected, the object is converted to a string value so it can be displayed in the spin box. To create a collection of objects to display in the control, you can add or remove the items individually by using the and methods. This can be called in an event handler, such as the event of a button. The object collection can be sorted alphabetically by setting the property to true. When the property is set to true, if you scroll past the last or first object in the collection, the list will start over with the first or last object respectively and appear to roll in a continuous list. When the or methods are called, either in code or by the click of the up or down buttons, is called to update the control with the new string. If is set to true, the string is matched to one of the values in the collection prior to updating the control's text display. Represents a Windows spin box (also known as an up-down control) that displays string values. Constructor To be added. Initializes a new instance of the class. 1.0.5000.0 2.0.0.0 Method System.Windows.Forms.AccessibleObject If you do not explicitly call the method, it will be called when the property is referenced. To get or set the property, you must add a reference to the Accessibility assembly installed with the .NET Framework. Creates a new accessibility object for the control. A new for the control. 1.0.5000.0 2.0.0.0 Method System.Void As you move through the collection of items in the control using the down button, you will eventually reach the last item in the collection. If you continue, and is set to true, the list will start over with the first item in the collection and appear to be continuous. This behavior also occurs when you move through the collection using the up button. Displays the next item in the object collection. 1.0.5000.0 2.0.0.0 Property System.ComponentModel.Localizable(true) System.ComponentModel.Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor)) System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content) System.Windows.Forms.DomainUpDown+DomainUpDownItemCollection To be added. The collection can be built and made available to the control in two ways. You can add items to the collection by using the or methods. A collection of objects assigned to the spin box (also known as an up-down control). 1.0.5000.0 2.0.0.0 Method System.Void To be added. Raises the event. The source of the event. An that contains the event data. 1.0.5000.0 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. The source of the event. An that contains the event data. 1.0.5000.0 2.0.0.0 Method System.Void To be added. To be added. To be added. To be added. 1.0.5000.0 Method 2.0.0.0 System.Void If the property is set to true, the control chooses the item on the list that begins with the character. If more than one item in the collection starts with the same character, the control selects the next item that begins with the typed character, starting from the currently selected position. Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. The source of the event. A that contains the event data. Property 2.0.0.0 System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Windows.Forms.Padding To be added. Even if you set the property, it will have a value of . Gets or sets the spacing between the control's contents and its edges. Event 2.0.0.0 System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.EventHandler For more information about handling events, see Consuming Events. Occurs when the value of the property changes. Property System.ComponentModel.DefaultValue(-1) System.ComponentModel.Browsable(false) System.Int32 To be added. The property holds the index value of the item in the collection that is currently selected in the spin box (also known as an up-down control). Collection items can be reassigned new index values if the property has been changed from false to true. As the collection is re-sorted alphabetically, the items will be assigned a new index value. If the user has entered an item in the spin box, or if no item has been selected, the value will be the default value, -1. Gets or sets the index value of the selected item. 1.0.5000.0 2.0.0.0 Property System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.Browsable(false) System.Object To be added. When this property is set, the value is validated to be one of the items in the collection, and the property is set to the appropriate index value. Gets or sets the selected item based on the index value of the selected item in the collection. 1.0.5000.0 2.0.0.0 Event System.EventHandler For the event to occur, the property can be changed in code, by the user typing in a new value or clicking the control's up or down buttons. Occurs when the property has been changed. 1.0.5000.0 2.0.0.0 Property System.ComponentModel.DefaultValue(false) System.Boolean To be added. When is set to true, the collection is sorted in alphabetical order. Gets or sets a value indicating whether the item collection is sorted. 1.0.5000.0 2.0.0.0 Method System.String The return string includes the type and the values for the and properties. Returns a string that represents the control. A string that represents the current . 1.0.5000.0 2.0.0.0 Method System.Void As you move through the collection of items in the control using the up button, you will eventually reach the first item in the collection. If you continue, and is set to true, the list will start over with the last item in the collection and appear to be continuous. This behavior also occurs when you move through the collection using the down button. Displays the previous item in the collection. 1.0.5000.0 2.0.0.0 Method System.Void To be added. Updates the text in the spin box (also known as an up-down control) to display the selected item. 1.0.5000.0 2.0.0.0 Property System.ComponentModel.Localizable(true) System.ComponentModel.DefaultValue(false) System.Boolean To be added. When the property is set to true, if you reach the last item in the collection and continue, the list will start over with the first item and appear to be continuous. This behavior works in reverse as well. Gets or sets a value indicating whether the collection of items continues to the first or last item if the user continues past the end of the list. 1.0.5000.0 2.0.0.0