The SpinUp and SpinDown methods enable you to increase or decrease the values entered in the C1Input controls (C1ComboBox, C1DropDownControl, C1DateEdit and C1NumericInput) when the focus is not on the control.
In addition to the above methods, C1ComboBox and C1DateEdit contain an additional property AllowSpinLoop that, when set to true, loops through the items when the SpinUp or SpinDown method is invoked.
Following is an example to use the SpinUp method:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged c1NumericEdit1.SpinUp(1) End Sub |
To write code in C#
C# |
Copy Code
|
---|---|
private void textBox1_TextChanged(object sender, EventArgs e) |
When you enter characters into the textbox control, the value in the C1NumericEdit control will increase by 1, each time a new character is entered, giving you the count of characters entered in the control.