System.Windows.Forms.NumericUpDown.Maximum Property

Gets or sets the maximum value for the spin box (also known as an up-down control).

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)]
public decimal Maximum { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the NumericUpDown.Maximum property is set, the NumericUpDown.Minimum property is evaluated and the NumericUpDown.UpdateEditText method is called. If the NumericUpDown.Minimum property is greater than the new NumericUpDown.Maximum property, the NumericUpDown.Minimum property value is set equal to the NumericUpDown.Maximum value. If the current NumericUpDown.Value is greater than the new NumericUpDown.Maximum value. the NumericUpDown.Value property value is set equal to the NumericUpDown.Maximum value.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0