Defines the value.
Class: SftSlider
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET
public int Value { get; set; }
Public Property Value As IntegerA value between Minimum and Maximum; a value outside them is moved inside. In range mode Value is the same as SftSlider.LowerValue.
The default value is 0.
Defines the value.
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