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).
See Also SftDate Object | Object Hierarchy