GOA - System.Windows.Forms.NumericUpDown

NumericUpDown Class


Represents an up-down control that displays numeric values.

Definition

public class NumericUpDown: UpDownBase, ISupportInitialize

Members Table

MethodDescription
AdjustFormScrollbarsOverriden. Adjusts the auto-scroll bars on the container based on the current control positions and the control currently selected. (Inherited from ContainerControl)
BeginInitBegins the initialization of a NumericUpDown control.
BringToFrontBrings the control to the front of the z-order. (Inherited from Control)
ContainsReturns a value indicating whether the specified control is a child of the control. (Inherited from Control)
CreateControlForces the creation of the control, including the creation of the handle and any child controls. (Inherited from Control)
CreateControlSkinCreates the skin for the Control. (Inherited from Control)
CreateControlSkinInstanceOverriden. Creates a ControlSkin instance for the UpDownBase object. (Inherited from UpDownBase)
CreateControlsInstanceCreates a new instance of the control collection for the control. (Inherited from Control)
CreateHandleCreates a handle for the control. (Inherited from Control)
DestroyHandleDestroys the handle associated with the control. (Inherited from Control)
DisposeOverloaded. (Inherited from Component)
DownButtonOverriden. Decrements the value of the NumericUpDown control.
EndInitEnds the initialization of a NumericUpDown control.
EqualsOverloaded. Compares two objects to determine if they are equal. (Inherited from Object)
FindFormReturns the form that the control is on. (Inherited from Control)
FocusSets input focus to the control. (Inherited from Control)
GetChildAtPointReturns the child control that is located at the specified coordinates. (Inherited from Control)
GetContainerControlReturns the next ContainerControl up the control's chain of parent controls. (Inherited from Control)
GetHashCodeServes as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object)
GetNextControlReturns the next control forward or back in the tab order of child controls. (Inherited from Control)
GetScrollStateDetermines whether the specified flag has been set. (Inherited from ScrollableControl)
GetStyleReturns the value of the specified control style bit for the control. (Inherited from Control)
GetTopLevelDetermines if the control is a top-level control. (Inherited from Control)
GetTypeGets the Type of the current instance. (Inherited from Object)
HideHides the control from the user. (Inherited from Control)
InitLayoutInitializes the layout state of the control after it has been added to another container. (Inherited from Control)
InternalMethodInherited from Control.
InvalidateOverloaded. Invalidates the control. This will cause a paint event to be sent later to the control. (Inherited from Control)
InvokeGotFocusRaises the GotFocus event for the specified control. (Inherited from Control)
InvokeLostFocusRaises the LostFocus event for the specified control. (Inherited from Control)
InvokeOnClickRaises the Click event for the specified control. (Inherited from Control)
InvokePaintRaises the Paint event for the specified control. (Inherited from Control)
InvokePaintBackgroundInvoke the Control.OnPaintBackground method for the specified control. (Inherited from Control)
IsInputCharDetermines if a character is an input character that the control recognizes. (Inherited from Control)
IsInputKeyDetermines whether the specified key is a regular input key or a special key that requires preprocessing. (Inherited from Control)
IsMnemonicDetermines if the specified character is the mnemonic character assigned to the control in the specified string. (Inherited from Control)
NumericUpDownInitializes a new instance of NumericUpDown.
OnBackColorChangedRaises the BackColorChanged event. (Inherited from Control)
OnCausesValidationChangedRaises the CausesValidationChanged event. (Inherited from Control)
OnChangedWhen overridden in a derived class, raises the Changed event. (Inherited from UpDownBase)
OnClickRaises the Click event. (Inherited from Control)
OnClientSizeChangedInherited from Control.
OnControlAddedRaises the ControlAdded event. (Inherited from Control)
OnControlRemovedRaises the ControlRemoved event. (Inherited from Control)
OnCreateControlOverriden. Raises the CreateControl event. (Inherited from ScrollableControl)
OnCursorChangedRaises the CursorChanged event. (Inherited from Control)
OnDockChangedRaises the DockChanged event. (Inherited from Control)
OnDoubleClickRaises the DoubleClick event. (Inherited from Control)
OnEnabledChangedRaises the EnabledChanged event. (Inherited from Control)
OnEnterRaises the Enter event. (Inherited from Control)
OnFontChangedOverriden. Raises the FontChanged event. (Inherited from UpDownBase)
OnForeColorChangedRaises the ForeColorChanged event. (Inherited from Control)
OnGotFocusRaises the GotFocus event. (Inherited from Control)
OnHandleCreatedOverriden. Raises the HandleCreated event. (Inherited from UpDownBase)
OnHandleDestroyedRaises the HandleDestroyed event. (Inherited from Control)
OnKeyDownRaises the KeyDown event. (Inherited from Control)
OnKeyPressRaises the KeyPress event. (Inherited from Control)
OnKeyUpRaises the KeyUp event. (Inherited from Control)
OnLayoutOverriden. Raises the Layout event. (Inherited from UpDownBase)
OnLeaveRaises the Leave event. (Inherited from Control)
OnLocationChangedRaises the LocationChanged event. (Inherited from Control)
OnLostFocusOverriden. Raises the LostFocus event.
OnMouseDownOverriden. Raises the MouseDown event. (Inherited from UpDownBase)
OnMouseEnterRaises the MouseEnter event. (Inherited from Control)
OnMouseLeaveRaises the MouseLeave event. (Inherited from Control)
OnMouseMoveRaises the MouseMove event. (Inherited from Control)
OnMouseUpOverriden. Raises the MouseUp event. (Inherited from UpDownBase)
OnMouseWheelOverriden. Raises the MouseWheel event. (Inherited from UpDownBase)
OnMoveRaises the Move event. (Inherited from Control)
OnNCPaintOccurs when the non-client area of the control needs to be redrawn. (Inherited from Control)
OnPaintOverriden. Raises the Paint event. (Inherited from UpDownBase)
OnPaintBackgroundPaints the background of the control. (Inherited from Control)
OnParentChangedRaises the ParentChanged event. (Inherited from Control)
OnParentEnabledChangedRaises the EnabledChanged event when the Enabled property value of the control's container changes. (Inherited from Control)
OnParentVisibleChangedRaises the VisibleChanged event when the Visible property value of the control's container changes. (Inherited from Control)
OnResizeRaises the Resize event. (Inherited from Control)
OnScrollInherited from ScrollableControl.
OnSizeChangedRaises the SizeChanged event. (Inherited from Control)
OnSkinChangedRaises the SkinChanged event. (Inherited from Control)
OnStyleChangedRaises the StyleChanged event. (Inherited from Control)
OnTabIndexChangedRaises the TabIndexChanged event. (Inherited from Control)
OnTabStopChangedRaises the TabStopChanged event. (Inherited from Control)
OnTextBoxKeyDownRaises the KeyDown event. (Inherited from UpDownBase)
OnTextBoxKeyPressRaises the KeyPress event. (Inherited from UpDownBase)
OnTextBoxLostFocusRaises the LostFocus event. (Inherited from UpDownBase)
OnTextBoxResizeRaises the Resize event. (Inherited from UpDownBase)
OnTextBoxTextChangedRaises the TextChanged event. (Inherited from UpDownBase)
OnTextChangedRaises the TextChanged event. (Inherited from Control)
OnValidatedRaises the Validated event. (Inherited from Control)
OnValidatingRaises the Validating event. (Inherited from Control)
OnValueChangedRaises the ValueChanged event.
OnVisibleChangedOverriden. Raises the VisibleChanged event. (Inherited from ScrollableControl)
ParseEditTextConverts the text displayed in the NumericUpDown control to a numeric value.
PerformLayoutOverloaded. Forces the control to apply layout logic to all its child controls. (Inherited from Control)
PointToClientComputes the location of the specified screen point into client coordinates. (Inherited from Control)
PointToScreenComputes the location of the specified client point into screen coordinates. (Inherited from Control)
ProcessDialogCharOverriden. Processes a dialog character. (Inherited from ContainerControl)
ProcessDialogKeyOverriden. Processes a dialog key. (Inherited from ContainerControl)
ProcessMnemonicOverriden. Processes a mnemonic character. (Inherited from ContainerControl)
ProcessTabKeySelects the next available control and makes it active. (Inherited from ContainerControl)
RecreateHandleForces the re-creation of the handle for the control. (Inherited from Control)
RectangleToClientComputes the size and location of the specified screen rectangle in client coordinates. (Inherited from Control)
RectangleToScreenComputes the size and location of the specified client rectangle in screen coordinates. (Inherited from Control)
ReferenceEqualsDetermines whether the specified Object instances are the same instance. (Inherited from Object)
RefreshForces the control to invalidate its client area and immediately redraw itself and any child controls. (Inherited from Control)
ResetBackColorResets the BackColor property to its default value. (Inherited from Control)
ResetCursorResets the Cursor property to its default value. (Inherited from Control)
ResetFontResets the Font property to its default value. (Inherited from Control)
ResetForeColorResets the ForeColor property to its default value. (Inherited from Control)
ResetSkinResets the Skin property to its default value. (Inherited from Control)
ResetTextResets the Text property to its default value. (Inherited from Control)
ResumeLayoutOverloaded. Resumes normal layout logic. (Inherited from Control)
ScrollControlIntoViewScrolls the specified child control into view on a ScrollableControl object. (Inherited from ScrollableControl)
SelectOverloaded. Activates the control. (Inherited from Control)
SelectNextControlActivates the next control. (Inherited from Control)
SendToBackSends the control to the back of the z-order. (Inherited from Control)
SetAutoScrollMarginSets the size of the auto-scroll margins of the ScrollableControl. (Inherited from ScrollableControl)
SetBoundsOverloaded. Sets the bounds of the control to the specified location and size. (Inherited from Control)
SetBoundsCoreOverriden. Performs the work of setting the specified bounds of this ScrollableControl. (Inherited from ScrollableControl)
SetClientSizeCoreSets the size of the client area of the control. (Inherited from Control)
SetDisplayRectLocationSets the display location of the ScrollableControl. (Inherited from ScrollableControl)
SetNCSizeCoreSets the non-client area of the control. (Inherited from Control)
SetScrollStateSets the specified scroll state flag to the ScrollableControl. (Inherited from ScrollableControl)
SetStyleSets the specified style bit to the specified value. (Inherited from Control)
SetTopLevelSets the control as the top-level control. (Inherited from Control)
SetVisibleCoreSets the control to the specified visible state. (Inherited from Control)
ShowDisplays the control to the user. (Inherited from Control)
SuspendLayoutTemporarily suspends the layout logic for the control. (Inherited from Control)
System.Windows.Forms.IContainerControl.ActivateControlActivates the specified control. (Inherited from ContainerControl)
ToStringReturns a String that represents the current Object. (Inherited from Object)
UpButtonOverriden. Increments the value of the NumericUpDown control.
UpdateCauses the control to redraw its client area if it was invalidated. (Inherited from Control)
UpdateBoundsOverloaded. Updates the bounds of the control with the current size and location. (Inherited from Control)
UpdateDefaultButtonWhen overridden by a derived class, updates which button is the default button. (Inherited from ContainerControl)
UpdateEditTextOverriden. Displays the current value of the NumericUpDown control in the appropriate format.
UpdateZOrderUpdates the control in its parent's z-order. (Inherited from Control)
ValidateValidates the last invalidated control and its ancestors up through, but not including, the current control. (Inherited from ContainerControl)
ValidateEditTextOverriden. Validates the text displayed in the NumericUpDown control.
PropertyDescription
ActiveControlGets or sets the active control on the container control. (Inherited from ContainerControl)
AnchorGets or sets which edges of the control are anchored to the edges of its container. (Inherited from Control)
AutoScrollOverriden. Gets or sets a value indicating whether the container will allow the user to scroll to any controls placed outside of its visible boundaries. (Inherited from UpDownBase)
AutoScrollMarginGets or sets the size of the auto-scroll margin. (Inherited from ScrollableControl)
AutoScrollMinSizeGets or sets the minimum size of the auto-scroll. (Inherited from ScrollableControl)
AutoScrollPositionGets or sets the location of the auto-scroll position. (Inherited from ScrollableControl)
BackColorOverriden. Gets or sets the background color of the UpDownBase control. (Inherited from UpDownBase)
BackVisualGets the visual of the control. (Inherited from Control)
BorderStyleGets or sets the border style for the UpDownBase control. (Inherited from UpDownBase)
BottomGets the distance between the bottom edge of the control and the top edge of its container's client area. (Inherited from Control)
BoundsGets or sets the size and location of the control including its nonclient elements. (Inherited from Control)
CanFocusGets a value indicating whether the control can receive focus. (Inherited from Control)
CanSelectGets a value indicating whether the control can be selected. (Inherited from Control)
CaptureGets or sets a value indicating whether the control has captured the mouse. (Inherited from Control)
CausesValidationGets or sets a value indicating whether the control causes validation for any controls that require validation when it receives focus. (Inherited from Control)
ChangingTextGets or sets a value indicating whether the text property is being changed internally by its parent class. (Inherited from UpDownBase)
ClientRectangleGets the rectangle that represents the client area of the control. (Inherited from Control)
ClientSizeGets or sets the height and width of the client area of the control. (Inherited from Control)
ContainerGets the IContainer that contains the Component. (Inherited from Component)
ContainsFocusGets a value indicating whether the control or one of its child controls currently has the input focus. (Inherited from Control)
ControlSkinGets the ControlSkin of the control. (Inherited from Control)
ControlsGets the collection of controls contained within the control. (Inherited from Control)
CreatedGets a value indicating whether the control has been created. (Inherited from Control)
CursorGets or sets the cursor which is displayed when the mouse pointer is over the control. (Inherited from Control)
DecimalPlacesGets or sets the number of decimal digits after the decimal symbol in a NumericUpDown control.
DefaultBackColorGets the default background color of the control. (Inherited from Control)
DefaultFontGets the default font of the control. (Inherited from Control)
DefaultForeColorGets the default foreground color of the control. (Inherited from Control)
DefaultSizeOverriden. Gets the default size of the UpDownBase control. (Inherited from UpDownBase)
DefaultSkinGets or sets the default skin of the control. (Inherited from Control)
DisplayRectangleOverriden. Gets the rectangle which represents the display area of the ScrollableControl. (Inherited from ScrollableControl)
DisposingGets a value indicating whether the control is in the process of being disposed of. (Inherited from Control)
DockGets or sets which edge of the parent container a control is docked to. (Inherited from Control)
DockPaddingGets the dock padding settings for all edges of the ScrollableControl. (Inherited from ScrollableControl)
EnabledGets or sets a value indicating whether the control can react to user interaction. (Inherited from Control)
FocusedOverriden. Gets a value indicating whether the UpDownBase control has input focus. (Inherited from UpDownBase)
FontGets or sets the font of the text which is displayed by the control. (Inherited from Control)
ForeColorOverriden. Gets or sets the foreground color of the UpDownBase control. (Inherited from UpDownBase)
HScrollGets or sets a value indicating whether the horizontal scroll bar of the ScrollableControl is visible. (Inherited from ScrollableControl)
HandleGets the native handle that the control is bound to. (Inherited from Control)
HasChildrenGets a value indicating whether the control has one or more child controls. (Inherited from Control)
HeightGets or sets the height of the control. (Inherited from Control)
HexadecimalGets or sets a value indicating whether the NumericUpDown control should display the value it contains in hexadecimal format.
IncrementGets or sets the value to increment or decrement the NumericUpDown control when the up or down buttons are clicked.
InterceptArrowKeysGets or sets a value indicating whether the user can use the UP ARROW and DOWN ARROW keys to select values. (Inherited from UpDownBase)
IsDisposedGets a value indicating whether the control has been disposed of. (Inherited from Control)
IsHandleCreatedGets a value indicating whether the control has a handle associated with it. (Inherited from Control)
LeftGets or sets the horizontal coordinate of a control's left edge. (Inherited from Control)
LocationGets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. (Inherited from Control)
MaskVisualGets the Visual which is the mask of the control. (Inherited from Control)
MaximumGets or sets the maximum allowed value for the NumericUpDown control.
MinimumGets or sets the minimum allowed value for the NumericUpDown control.
ModifierKeysGets a value indicating when one of the modifier keys (SHIFT, CTRL, and ALT) is pressed. (Inherited from Control)
MouseButtonsGets a value indicating when one of the mouse buttons is clicked. (Inherited from Control)
MousePositionGets the position of the mouse cursor in global coordinates. (Inherited from Control)
NCVisualGets the non-client visual element of the control. (Inherited from Control)
NameGets or sets the name of the control. (Inherited from Control)
OverlayVisualGets a visual placed over everything. (Inherited from Control)
ParentGets or sets the parent container of the control. (Inherited from Control)
ParentFormGets the form that the container control is assigned to. (Inherited from ContainerControl)
ParkedGets a value indicating whether the control is parked. (Inherited from Control)
PreferredHeightGets the preferred height of the UpDownBase control. (Inherited from UpDownBase)
ReadOnlyGets or sets a value indicating whether the text can be changed by the use of the up or down buttons only. (Inherited from UpDownBase)
RecreatingHandleGets a value indicating whether the control is currently re-creating its handle. (Inherited from Control)
RightGets the distance between the right edge of the control and the left edge of its container. (Inherited from Control)
SiteGets or sets the ISite of the Component. (Inherited from Component)
SizeGets or sets the height and width of the control. (Inherited from Control)
SkinGets or sets the skin of the control. (Inherited from Control)
SystemMenuOverriden. Gets or sets the SystemMenu of the control. (Inherited from UpDownBase)
TabIndexGets or sets the tab order of the control within its container. (Inherited from Control)
TabStopGets or sets a value indicating whether the user can use the TAB key to focus to the control. (Inherited from Control)
TagGets or sets the object that contains data about the control. (Inherited from Control)
TextOverriden. Gets or sets the text displayed in the UpDownBase control. (Inherited from UpDownBase)
TextAlignGets or sets the alignment of the text in the UpDownBase control. (Inherited from UpDownBase)
ThousandsSeparatorGets or sets a value indicating whether a thousands separator should be displayed in the NumericUpDown control.
TopGets or sets the vertical coordinate of the control's top edge. (Inherited from Control)
TopLevelControlGets the parent control that is not parented by another Windows Forms control. (Inherited from Control)
UserEditGets or sets a value indicating whether a value has been entered by the user. (Inherited from UpDownBase)
VScrollGets or sets a value indicating whether the vertical scroll bar of the ScrollableControl is visible. (Inherited from ScrollableControl)
ValueGets or sets the value assigned to the NumericUpDown control.
VisibleGets or sets a value indicating whether the control is visible. (Inherited from Control)
VisualGets the visual element of the control. (Inherited from Control)
WidthGets or sets the width of the control. (Inherited from Control)
EventDescription
BackColorChangedHandles the changes of the BackColor property. (Inherited from Control)
CausesValidationChangedHandles the changes of the CausesValidation property. (Inherited from Control)
ClickHandles the click event when the control is clicked. (Inherited from Control)
ClientSizeChangedInherited from Control.
ControlAddedHandles the addition of a new control when it is added to the Control.ControlCollection. (Inherited from Control)
ControlRemovedHandles the remove of a control from the Control.ControlCollection. (Inherited from Control)
CursorChangedHandles the changes of the Cursor property. (Inherited from Control)
DisposedAdds an event handler to listen to the Disposed event on the component. (Inherited from Component)
DockChangedHandles the changes of the Dock property. (Inherited from Control)
DoubleClickHandles the double-clicked event of the control. (Inherited from Control)
EnabledChangedHandles the changes of the Enabled property. (Inherited from Control)
EnterHandles the entered event of the control. (Inherited from Control)
FontChangedHandles the changes of the Font property. (Inherited from Control)
ForeColorChangedHandles the changes of the ForeColor property. (Inherited from Control)
GotFocusHandles the focus reception of the control. (Inherited from Control)
HandleCreatedHandles the creation of a handle for the control. (Inherited from Control)
HandleDestroyedHandles the control's handle which is in the process of being destroyed. (Inherited from Control)
KeyDownHandles the pressed key event when a key is pressed and the control has focus. (Inherited from Control)
KeyPressHandles the pressed key event when a key is pressed and the control has focus. (Inherited from Control)
KeyUpHandles the release key event when a key is released and the control has focus. (Inherited from Control)
LayoutHandles the changes of control when it should reposition its child controls. (Inherited from Control)
LeaveHandles the input focus when it leaves the control. (Inherited from Control)
LocationChangedHandles the changes of the Location property. (Inherited from Control)
LostFocusHandles the focus on the control when it loses focus. (Inherited from Control)
MouseDownHandles the mouse event when the mouse pointer is over the control and a mouse button is pressed. (Inherited from Control)
MouseEnterHandles the mouse event when the mouse pointer enters the control. (Inherited from Control)
MouseLeaveHandles the mouse event when the mouse pointer leaves the control. (Inherited from Control)
MouseMoveHandles the mouse event when the mouse pointer is moved over the control. (Inherited from Control)
MouseUpHandles the mouse event when the mouse pointer is over the control and a mouse button is released. (Inherited from Control)
MouseWheelHandles the mouse event when the mouse wheel moves while the control has focus. (Inherited from Control)
MoveHandles the motion of the control when it is moved. (Inherited from Control)
PaintHandles the paint event of the control when it is redrawn. (Inherited from Control)
ParentChangedHandles the changes of the Parent property. (Inherited from Control)
ResizeHandles the size changes of the control when it is resized. (Inherited from Control)
ScrollInherited from ScrollableControl.
SizeChangedHandles the changes of the Size property. (Inherited from Control)
SkinChangedHandles the changes of the Skin property. (Inherited from Control)
StyleChangedHandles the changes of the control style. (Inherited from Control)
TabIndexChangedHandles the changes of the TabIndex property. (Inherited from Control)
TabStopChangedHandles the changes of the TabStop property. (Inherited from Control)
TextChangedHandles the changes of the Text property. (Inherited from Control)
ValidatedHandles the validation of the control when it is finished validating. (Inherited from Control)
ValidatingHandles the validation of the control when it is validating. (Inherited from Control)
ValueChangedHandles the changes of the Value property.
VisibleChangedDetermines the value of the VScroll property. (Inherited from Control)
ConstantDescription
ScrollState_AutoScrollingDetermines the value of the AutoScroll property. (Inherited from ScrollableControl)
ScrollState_HScrollVisibleDetermines the value of the HScroll property. (Inherited from ScrollableControl)
ScrollState_UserHasScrolledDetermines whether the user has scrolled the ScrollableControl. (Inherited from ScrollableControl)
ScrollState_VScrollVisibleDetermines the value of the VScroll property. (Inherited from ScrollableControl)

Inheritance Hierarchy

Object
Component
Control
ScrollableControl

Examples

// This sample shows how to create and use a NumericUpDown object.

 

using System;

using System.Drawing;

using System.Windows.Forms;

 

public class MyForm : System.Windows.Forms.Form

{

     private System.Windows.Forms.NumericUpDown numeric1;

     private System.Windows.Forms.Label label1;

 

     public MyForm()

     {

          InitializeComponent();

     }

 

     private void InitializeComponent()

     {

          this.SuspendLayout();

          this.numeric1= new System.Windows.Forms.NumericUpDown();

          this.numeric1.Location= new System.Drawing.Point(10, 10);

          this.numeric1.Minimum= -100;

          this.numeric1.Maximum= 100;

          this.numeric1.Increment= 0.5;

          this.numeric1.DecimalPlaces= 2;

          this.numeric1.ValueChanged += new EventHandler( on_value_changed );

          this.Controls.Add( this.numeric1 );

 

          this.label1= new System.Windows.Forms.Label();

          this.label1.Location= new System.Drawing.Point(5, numeric1.Bottom+5);

          this.label1.Size= new Size( Application.Width-2*label1.Left, Application.Height-numeric1.Bottom-10 );

          this.Controls.Add( this.label1 );

 

          this.ResumeLayout(false);

     }

 

     private void on_value_changed( object sender, EventArgs e )

     {

          this.label1.Text= "'" + this.numeric1.Value.ToString() + "' has been selected";

     }

 

     static void Main()

     {

          Application.Run( new MyForm() );

     }

}

 

Class Information

NamespaceSystem.Windows.Forms
Flash LibrarySystem.Windows.Forms.scl
Flash Library Version2.0.0.2118
Silverlight LibrarySystem.Windows.Forms.dll



© 2003-2007 NETiKA Technologies. All rights reserved.