System.Windows.Forms.HtmlElement.LostFocus Event

Occurs when the element has lost user input focus.

Syntax

public event HtmlElementEventHandler LostFocus

Remarks

An element will no longer receive key stroke events after HtmlElement.LostFocus occurs until it is given focus again, either by the user selecting it on the page or by the application calling the HtmlElement.Focus method on that element.

You cannot cancel this event.

An HtmlElement.LostFocus event on an element will also occur on that element's parents and on the System.Windows.Forms.HtmlDocument class itself, unless you set the HtmlElementEventArgs.BubbleEvent property of the System.Windows.Forms.HtmlElementEventArgs class to true.

For more information about the difference between canceling event bubbling and canceling the default action on an event, see tp://msdn.microsoft.com/en-us/library/ms533022.aspx.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0