// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetSpinSettings()
{
// Creates an instance of a GcComboBox control.
GcComboBox gcComboBox1 = new GcComboBox();
// Sets the AllowSpin to true.
gcComboBox1.Spin.AllowSpin = true;
// Sets the Wrap to false. When the value is the maximum or minimum, it can't spin any more.
gcComboBox1.Spin.Wrap = false;
// Sets the Increment to 2, the value of the control will change 2 items.
gcComboBox1.Spin.Increment = 2;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetSpinSettings()
' Creates an instance of a GcComboBox control.
Dim gcComboBox1 As New GcComboBox()
' Sets the AllowSpin to true.
gcComboBox1.Spin.AllowSpin = True
' Sets the Wrap to false. When the value is the maximum or minimum, it can't spin any more.
gcComboBox1.Spin.Wrap = False
' Sets the Increment to 2, the value of the control will change 2 items.
gcComboBox1.Spin.Increment = 2
End Sub