HeaderPane
Main
Hide
Share Link
Print

ShowTodayButton Property, CalendarClass Class

Defines whether the Today button is shown below the calendar.

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

Syntax

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

Value

True to show the Today button, otherwise False.

The default value is True.

Comments

Defines whether the Today button is shown below the calendar.

Examples

VB.NET View entire sample code

    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
    End Sub

    Private Sub CheckClear_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckClear.CheckedChanged
        For Each calendar As CalendarClass In AllCalendars()
            calendar.ShowClearButton = CheckClear.Checked
        Next

See Also CalendarClass Class | Classes | SftDate/NET 3.0