This class provides the base functionality for the DomainUpDown and NumericUpDown controls. It offers a text box with an attached spin control. InterceptArrowKeys determines whether you can use the arrow keys to spin the value up and down. UpDownAlign sets the spin buttons to the left or right of the control, respecting the right-to-left setting of the context. UpButton() and DownButton() programmatically invoke the pressing of the respective spin buttons. public abstract class UpDownBase : ContainerControl { // Public Constructors public UpDownBase (); // Public Instance Properties public override bool AutoScroll {set; get; } // overrides ScrollableControl public Size AutoScrollMargin {set; get; } // overrides ScrollableControl public Size AutoScrollMinSize {set; get; } // overrides ScrollableControl public override Color BackColor {set; get; } // overrides Control public override Image BackgroundImage {set; get; } // overrides Control public BorderStyle BorderStyle {set; get; } public override ContextMenu ContextMenu {set; get; } // overrides Control public DockPaddingEdges DockPadding {get; } // overrides ScrollableControl public override bool Focused {get; } // overrides Control public override Color ForeColor {set; get; } // overrides Control public bool InterceptArrowKeys {set; get; } public int PreferredHeight {get; } public bool ReadOnly {set; get; } public override string Text {set; get; } // overrides Control public HorizontalAlignment TextAlign {set; get; } public LeftRightAlignment UpDownAlign {set; get; } // Protected Instance Properties protected bool ChangingText {set; get; } protected override CreateParams CreateParams {get; } // overrides ContainerControl protected override Size DefaultSize {get; } // overrides Control protected bool UserEdit {set; get; } // Public Instance Methods public abstract void DownButton (); public void Select (int start , int length ); public abstract void UpButton (); // Protected Instance Methods protected virtual void OnChanged (object source , EventArgs e ); protected override void OnFontChanged (EventArgs e ); // overrides Control protected override void OnHandleCreated (EventArgs e ); // overrides Control protected override void OnLayout (LayoutEventArgs e ); // overrides ScrollableControl protected override void OnMouseWheel (MouseEventArgs e ); // overrides ScrollableControl protected virtual void OnTextBoxKeyDown (object source , KeyEventArgs e ); protected virtual void OnTextBoxKeyPress (object source , KeyPressEventArgs e ); protected virtual void OnTextBoxLostFocus (object source , EventArgs e ); protected virtual void OnTextBoxResize (object source , EventArgs e ); protected virtual void OnTextBoxTextChanged (object source , EventArgs e ); protected override void SetBoundsCore (int x , int y , int width , int height , BoundsSpecified specified ); // overrides Control protected abstract void UpdateEditText (); protected virtual void ValidateEditText (); } HierarchySystem.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) Control(IOleContro, IOleObject , IOleInPlaceObject , IOleInPlaceActiveObject , IOleWindow , IViewObject , IViewObject2 , IPersist , IPersistStreamInit , IPersistPropertyBag , IPersistStorage , IQuickActivate , System.ComponentModel.ISynchronizeInvoke , IWin32Window) ScrollableControl ContainerControl(IContainerControl) UpDownBase SubclassesDomainUpDown , NumericUpDown |