HeaderPane
Main
Hide
Share Link
Print

ViewChanged Event, SftCalendar Class

Occurs when the calendar switches between the month, year, decade and century views.

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

Syntax

public event EventHandler ViewChanged;
Public Event ViewChanged As EventHandler

Comments

Occurs when the calendar switches between the month, year, decade and century views.

Examples

C# View entire sample code

            DumpValues("sftCalendar1.RangeChanged", e);
        }

        private void sftCalendar1_DateActivated(object sender, DateEventArgs e) {
            DumpValues("sftCalendar1.DateActivated", e);
        }

        private void sftCalendar1_ViewChanged(object sender, EventArgs e) {
            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) {

VB.NET View entire sample code

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

    Private Sub SftCalendar1_DateActivated(ByVal sender As Object, ByVal e As DateEventArgs) Handles SftCalendar1.DateActivated
        DumpValues("SftCalendar1.DateActivated", e)
    End Sub

    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

See Also SftCalendar Class | Classes | SftDate/NET 3.0