[This is preliminary documentation and is subject to change.]

Sets window as foreground window

Namespace: Tools.WindowsT.NativeT
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public bool SetForeground()
Visual Basic
Public Function SetForeground As Boolean
Visual C++
public:
bool SetForeground()
F#
member SetForeground : unit -> bool 
JScript
public function SetForeground() : boolean

Return Value

True if window was successfully set as foreground window. False otherwise.

Remarks

There are many reasons why window cannot be set foreground e.g. application is working with the window, menu is active etc.

See Also

Collapse/expand Version History

1.5.3

  • This class is new in version 1.5.3