Edit this page

Getting Started

The following tutorial demonstrates changing the thumb position on a RadTrackBar to reflect changes in a RadSpinEditor.

editors-spineditor-getting-started 001

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