Properties

This page lists the available properties of the NumericBox control.

Value: gets or sets the current value of the control (default is 0)
Example:
using NumericBoxControlLib;
public class Test
{
    public void CreateNumericBox
    {
        var numericbox = new NumericBox();
        MessageBox.Show(numericbox.Value); // The default value is 0
        numericbox.Value = 32;
        MessageBox.Show(numericbox.Value); // 32
    }
}


Maximum: gets or sets the maximum value of the control (default is Int32.MaxValue)
Example:
using NumericBoxControlLib;
public class Test
{
    public void CreateNumericBox
    {
        var numericbox = new NumericBox();
        MessageBox.Show(numericbox.Maximum); // The default value is Int32.MaxValue
        numericbox.Maximum = 255;
        MessageBox.Show(numericbox.Maximum); // 255
    }
}


Minimum: gets or sets the minimum value of the control (default is Int32.MinValue)
Example:
using NumericBoxControlLib;
public class Test
{
    public void CreateNumericBox
    {
        var numericbox = new NumericBox();
        MessageBox.Show(numericbox.Minimum); // The default value is Int32.MinValue
        numericbox.Minimum = 0;
        MessageBox.Show(numericbox.Minimum); // 0
    }
}

Last edited Sep 4, 2010 at 3:40 PM by vasember, version 2

Comments

No comments yet.