// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetSpinSettings()
{
// Creates an instance of a GcDateTime control.
GcDateTime GcDateTime1 = new GcDateTime();
// Sets the AllowSpin to true.
GcDateTime1.Spin.AllowSpin = true;
// Sets the SpinMode to DateSpinMode.Value. No matter which field the caret is in, the value of the control spins.
GcDateTime1.Spin.SpinMode = DateSpinMode.Value;
// Sets the Wrap to false. When the value is the maximum or minimum, it can't spin any more.
GcDateTime1.Spin.Wrap = false;
// Sets the IncrementValue to "1:00:00", the value of the control will change 1 day every time.
GcDateTime1.Spin.IncrementValue = TimeSpan.Parse("1:00:00");
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetSpinSettings()
' Creates an instance of a GcDateTime control.
Dim GcDateTime1 As New GcDateTime()
' Sets the AllowSpin to true.
GcDateTime1.Spin.AllowSpin = True
' Sets the SpinMode to DateSpinMode.Value. No matter which field the caret is in, the value of the control spins.
GcDateTime1.Spin.SpinMode = DateSpinMode.Value
' Sets the Wrap to false. When the value is the maximum or minimum, it can't spin any more.
GcDateTime1.Spin.Wrap = False
' Sets the IncrementValue to "1:00:00", the value of the control will change 1 day every time.
GcDateTime1.Spin.IncrementValue = TimeSpan.Parse("1:00:00")
End Sub