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