HtmlElement.RemoveFocus Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Removes focus from the current element, if that element has focus.

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

public void RemoveFocus()

Calling this method raises the LostFocus event for the element.

When focus is cleared from an element using this method, it is given to the document containing the element, not to the next element in the tab order.

.NET Framework
Available since 2.0
Return to top