HtmlWindow::Focus Method ()

 

Puts the focus on the current window.

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

public:
void Focus()

If another window held the focus before Focus was called, that window will lose the focus.

Do not call focus on an element inside of a window until the window's Load event has been raised.

.NET Framework
Available since 2.0
Return to top
Show: