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

Searches for top-leve window by class and/or text

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

Syntax

C#
public static Win32Window FindWindow(
	string text,
	string className
)
Visual Basic
Public Shared Function FindWindow ( _
	text As String, _
	className As String _
) As Win32Window
Visual C++
public:
static Win32Window^ FindWindow(
	String^ text, 
	String^ className
)
F#
static member FindWindow : 
        text:string * 
        className:string -> Win32Window 
JScript
public static function FindWindow(
	text : String, 
	className : String
) : Win32Window

Parameters

text
Type: System..::..String
Text of windows to search for. Ignored when null. Can contain wildcards characters - see LikeString(String, String, CompareMethod).
className
Type: System..::..String
Name of class of windows to search for. Ignored when null.

Return Value

First top-level window with given characteristics found. Null when no such window can be found.

See Also