The control loses the input focus.
| C# | void object_FocusOut(object sender, System.EventArgs e); |
| VB.NET | Private Sub object_FocusOut(ByVal sender As Object, ByVal e As System.EventArgs) Handles object.FocusOut |
| C++ | void OnFocusOutobject(); |
| C | HRESULT OnFocusOutobject(); |
object
The FocusOut event occurs when the control loses 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).
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
End ClassSee Also SftCalendar Object | Object Hierarchy