HeaderPane
Main
Hide
Share Link
Print

RangeChanged Event, SftCalendar Object

The selected range changed (range selection only).

Syntax

C#void object_RangeChanged(object sender, System.EventArgs e);
VB.NETPrivate Sub object_RangeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles object.RangeChanged
C++void OnRangeChangedobject();
CHRESULT OnRangeChangedobject();

object

A SftCalendar object.

Comments

The RangeChanged event occurs when the selected range changes in range selection mode (SelectionMode), by the user or the application. The range is retrieved using the RangeStart and RangeEnd properties.

Examples

VB.NET View entire sample code

                selection = "Selected: " & FormatLongDate(start) & " - " & FormatLongDate([end])
            End If
        ElseIf TypeOf sftCalendar.Value Is Date Then
            selection = "Selected: " & FormatLongDate(CDate(sftCalendar.Value))
        End If
        labelSelection.Text = selection
    End Sub

    Private Sub sftCalendar_ValueChanged(sender As Object, e As EventArgs) Handles sftCalendar.ValueChanged, sftCalendar.RangeChanged
        ShowSelection()
    End Sub

    ' Colors set by the application are used as given in dark mode too, so the scheme has a variant for each mode.
    Private Sub SetColorScheme(cal As SftDateCalendar, dark As Boolean, [on] As Boolean)
        cal.TitleBackColor = If([on], Ole(Color.FromArgb(0, 95, 115)), DefaultColor)
        cal.TitleForeColor = If([on], Ole(Color.White), DefaultColor)

See Also SftCalendar Object | Object Hierarchy | Ranges


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.