Home Cooker Classes Others Rice CookerGX
Classes  >  browser  >  Focus()
browser class : Focus() method

Description

Attempts to set input focus to this browser.

Syntax

browserInstance.Focus()

Arguments

None.

Return value

ClassDescription
realThe value that indicates whether the input focus was set.

Sample code

//b is a instance of browser type.

bool focused = b.Focus();

Notes

It's a wrapper of the System.Windows.Forms.WebBrowser.Focus().

Returns true if input focus were set. Otherwise, return false.

Links for reference

Copyright © Rice All rights reserved.