HeaderPane
Main
Hide
Share Link
Print

ValueChanged Event, SftSlider Class

Occurs when the SftSlider.Value property changes, by the user, the application or a change of SftSlider.RangeMode.

Class: SftSlider
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET

Syntax

public event EventHandler ValueChanged;
Public Event ValueChanged As EventHandler

Comments

Occurs when the SftSlider.Value property changes, by the user, the application or a change of SftSlider.RangeMode.

Examples

C# View entire sample code

        // Occurs on .NET Framework before a form or a control is scaled for the DPI of its monitor.
        private void sftStyle1_Scaling(object sender, ScalingEventArgs e) {
            DumpValues("sftStyle1.Scaling", e);
        }

        // sftSlider1 - a value; sftSlider2 - a range with two thumbs

        private void sftSlider1_ValueChanged(object sender, EventArgs e) {
            DumpValues("sftSlider1.ValueChanged (" + sftSlider1.Value + ")", e);
        }

        private void sftSlider1_Scroll(object sender, EventArgs e) {
            DumpValues("sftSlider1.Scroll", e);
        }

        private void sftSlider2_RangeChanged(object sender, EventArgs e) {

VB.NET View entire sample code

    ' Occurs on .NET Framework before a form or a control is scaled for the DPI of its monitor.
    Private Sub SftStyle1_Scaling(ByVal sender As Object, ByVal e As ScalingEventArgs) Handles SftStyle1.Scaling
        DumpValues("SftStyle1.Scaling", e)
    End Sub

    ' SftSlider1 - a value; SftSlider2 - a range with two thumbs

    Private Sub SftSlider1_ValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftSlider1.ValueChanged
        DumpValues("SftSlider1.ValueChanged (" + SftSlider1.Value.ToString() + ")", e)
    End Sub

    Private Sub SftSlider1_Scroll(ByVal sender As Object, ByVal e As EventArgs) Handles SftSlider1.Scroll
        DumpValues("SftSlider1.Scroll", e)
    End Sub

    Private Sub SftSlider2_RangeChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftSlider2.RangeChanged

See Also SftSlider Class | Classes | SftStyle/NET 3.0