HeaderPane
Main
Hide
Share Link
Print

ShowTrailingDates Property, CalendarClass Class

Defines whether the days of the previous and next month are shown before and after a month.

Class: CalendarClass
Namespace: Softelvdm.SftDateNET
Assembly: Softelvdm.SftDateNET

Syntax

public bool ShowTrailingDates { get; set; }
Public Property ShowTrailingDates As Boolean

Value

True to show them, otherwise False.

The default value is True.

Comments

Defines whether the days of the previous and next month are shown before and after a month.

Examples

VB.NET View entire sample code

    Private Sub ComboFirstDay_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ComboFirstDay.SelectedIndexChanged
        For Each calendar As CalendarClass In AllCalendars()
            calendar.FirstDayOfWeek = CType(ComboFirstDay.SelectedItem, FirstDayOfWeekEnum)
        Next
    End Sub

    Private Sub CheckTrailing_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckTrailing.CheckedChanged
        For Each calendar As CalendarClass In AllCalendars()
            calendar.ShowTrailingDates = CheckTrailing.Checked
        Next
    End Sub

    Private Sub CheckToday_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckToday.CheckedChanged
        For Each calendar As CalendarClass In AllCalendars()
            calendar.ShowTodayButton = CheckToday.Checked
        Next

See Also CalendarClass Class | Classes | SftDate/NET 3.0