Defines the upper value of the range.
Class: SftSlider
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET
public int UpperValue { get; set; }
Public Property UpperValue As IntegerA value between Minimum plus SftSlider.MinimumRange and Maximum. A value below SftSlider.LowerValue plus SftSlider.MinimumRange moves SftSlider.LowerValue down; the user's thumb stops there instead. Used in range mode.
The default value is 10.
Defines the upper value of the range.
ShowSliders();
}
private void sliderPrice_RangeChanged(object sender, EventArgs e) {
ShowSliders();
}
private void ShowSliders() {
labelSliders.Text = "Volume " + sliderVolume.Value + ", price range " + sliderPrice.LowerValue + " to " + sliderPrice.UpperValue;
}
// SftMessageBox takes the arguments of MessageBox.Show and returns the same results.
private void buttonMessageBox_Click(object sender, EventArgs e) {
DialogResult result = SftMessageBox.Show(this, "Do you want to save the changes to Order 1042 before closing?", "Orders",
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
labelResult.Text = "Message box: " + result;
ShowSliders()
End Sub
Private Sub SliderPrice_RangeChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SliderPrice.RangeChanged
ShowSliders()
End Sub
Private Sub ShowSliders()
LabelSliders.Text = "Volume " + SliderVolume.Value.ToString() + ", price range " + SliderPrice.LowerValue.ToString() + " to " + SliderPrice.UpperValue.ToString()
End Sub
' SftMessageBox takes the arguments of MessageBox.Show and returns the same results.
Private Sub ButtonMessageBox_Click(ByVal sender As Object, ByVal e As EventArgs) Handles ButtonMessageBox.Click
Dim result As DialogResult = SftMessageBox.Show(Me, "Do you want to save the changes to Order 1042 before closing?", "Orders",
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question)
LabelResult.Text = "Message box: " + result.ToString()See Also SftSlider Class | Classes | SftStyle/NET 3.0