// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetSpinSettings()
{
// Creates an instance of a GcNumber control.
GcNumber gcNumber1 = new GcNumber();
// Sets the AllowSpin to true.
gcNumber1.Spin.AllowSpin = true;
// Sets the SpinMode to NumberSpinMode.Digits. No matter which field the caret is in, the value of the control spins.
gcNumber1.Spin.SpinMode = NumberSpinMode.Digits;
// Sets the Wrap to false. When the value is the maximum or minimum, it can't spin any more.
gcNumber1.Spin.Wrap = false;
// Sets the Increment to 2. The digit of the value will change 2 every time.
gcNumber1.Spin.Increment = 2;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetSpinSettings()
' Creates an instance of a GcNumber control.
Dim gcNumber1 As New GcNumber()
' Sets the AllowSpin to true.
gcNumber1.Spin.AllowSpin = True
' Sets the SpinMode to NumberSpinMode.Digits. No matter which field the caret is in, the value of the control spins.
gcNumber1.Spin.SpinMode = NumberSpinMode.Digits
' Sets the Wrap to false. When the value is the maximum or minimum, it can't spin any more.
gcNumber1.Spin.Wrap = False
' Sets the Increment to 2. The digit of the value will change 2 every time.
gcNumber1.Spin.Increment = 2
End Sub