Getting Started with WinForms SpinEditor
The following tutorial demonstrates changing the thumb position on a RadTrackBar to reflect changes in a RadSpinEditor.
1. Drop a RadSpinEditor and a RadTrackbar on a form.
2. In the Property Window, set the RadSpinEditor Maximum property to "20".
3. Click the Events
tab of the Property Window, locate the ValueChanged event and double-click it to create an event handler. Replace the event handler with the following code.
void radSpinEditor1_ValueChanged(object sender, EventArgs e)
{
this.radTrackBar1.Value = Convert.ToInt32(radSpinEditor1.Value);
}
Private Sub RadSpinEditor1_ValueChanged1(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadSpinEditor1.ValueChanged
Me.RadTrackBar1.Value = Convert.ToInt32(RadSpinEditor1.Value)
End Sub
4. Press F5 to run the application. Experiment with the behavior of the RadSpinEditor by typing values directly to the editor, by clicking the up and down arrows, and by pressing the up and down arrow keys.
Telerik UI for WinForms Learning Resources
- Telerik UI for WinForms SpinEditor Component
- Getting Started with Telerik UI for WinForms Components
- Telerik UI for WinForms Setup
- Telerik UI for WinForms Application Modernization
- Telerik UI for WinForms Visual Studio Templates
- Deploy Telerik UI for WinForms Applications
- Telerik UI for WinForms Virtual Classroom(Training Courses for Registered Users)
- Telerik UI for WinForms License Agreement)