HeaderPane
Main
Hide
Share Link
Print

TodayClicked Event, SftCalendar Class

Occurs when the user clicks the Today button.

Class: SftCalendar
Namespace: Softelvdm.SftDateNET
Assembly: Softelvdm.SftDateNET

Syntax

public event EventHandler TodayClicked;
Public Event TodayClicked As EventHandler

Comments

Occurs when the user clicks the Today button.

Examples

C# View entire sample code

            DumpValues("sftCalendar1.ViewChanged (" + sftCalendar1.View + ")", e);
        }

        private void sftCalendar1_DisplayChanged(object sender, EventArgs e) {
            DumpValues("sftCalendar1.DisplayChanged (" + sftCalendar1.DisplayStart.ToShortDateString() + ")", e);
        }

        private void sftCalendar1_TodayClicked(object sender, EventArgs e) {
            DumpValues("sftCalendar1.TodayClicked", e);
        }

        private void sftCalendar1_ClearClicked(object sender, EventArgs e) {
            DumpValues("sftCalendar1.ClearClicked", e);
        }

        private void sftCalendar1_DayFormatting(object sender, DayFormattingEventArgs e) {

VB.NET View entire sample code

    Private Sub SftCalendar1_ViewChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.ViewChanged
        DumpValues("SftCalendar1.ViewChanged (" + SftCalendar1.View.ToString() + ")", e)
    End Sub

    Private Sub SftCalendar1_DisplayChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.DisplayChanged
        DumpValues("SftCalendar1.DisplayChanged (" + SftCalendar1.DisplayStart.ToShortDateString() + ")", e)
    End Sub

    Private Sub SftCalendar1_TodayClicked(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.TodayClicked
        DumpValues("SftCalendar1.TodayClicked", e)
    End Sub

    Private Sub SftCalendar1_ClearClicked(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.ClearClicked
        DumpValues("SftCalendar1.ClearClicked", e)
    End Sub

See Also SftCalendar Class | Classes | SftDate/NET 3.0