HeaderPane
Main
Hide
Share Link
Print

FocusIn Event, SftCalendar Object

The control receives the input focus.

Syntax

C#void object_FocusIn(object sender, System.EventArgs e);
VB.NETPrivate Sub object_FocusIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles object.FocusIn
C++void OnFocusInobject();
CHRESULT OnFocusInobject();

object

A SftCalendar object.

Comments

The FocusIn event occurs when the control receives the input focus. p For a date field control, the field and the text box used for free-form editing count as one: moving the focus between them raises no event. p Usually containers provide their own events which signal that a control receives or loses the input focus. .NET offers the Enter and Leave events and Visual C++ applications can handle the WM_SETFOCUS and WM_KILLFOCUS Windows messages. For containers where such a facility is not available, the FocusIn and FocusOut events can be used instead. p Changing the input focus to another control or window while handling this event is not supported (including display of message boxes).

Examples

VB.NET View entire sample code

    Private Sub sftCalendar_MouseUpEvent(sender As Object, e As _ISftCalendarEvents_MouseUpEvent) Handles sftCalendar.MouseUpEvent
        LogEvent(sender, "MouseUp", "Button=" & e.button & " Shift=" & e.shift & " x=" & e.xPos & " y=" & e.yPos)
    End Sub

    Private Sub sftCalendar_MouseDblClk(sender As Object, e As _ISftCalendarEvents_MouseDblClkEvent) Handles sftCalendar.MouseDblClk
        LogEvent(sender, "MouseDblClk", "Button=" & e.button & " Shift=" & e.shift & " x=" & e.xPos & " y=" & e.yPos)
    End Sub

    Private Sub sftCalendar_FocusIn(sender As Object, e As EventArgs) Handles sftCalendar.FocusIn
        LogEvent(sender, "FocusIn")
    End Sub

    Private Sub sftCalendar_FocusOut(sender As Object, e As EventArgs) Handles sftCalendar.FocusOut
        LogEvent(sender, "FocusOut")
    End Sub

See Also SftCalendar Object | Object Hierarchy


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