RanorexNetRanorexNet Documentation
FindFormClassName Method (className, classInstance)
NamespacesRanorexApplicationFindFormClassName(String, Int32)
The function retrieves a new form whose class name and class instance number match the specified arguments.
Declaration Syntax
C#Visual BasicVisual C++
public static Form FindFormClassName(
	string className,
	int classInstance
)
Public Shared Function FindFormClassName ( _
	className As String, _
	classInstance As Integer _
) As Form
public:
static Form^ FindFormClassName(
	String^ className, 
	int classInstance
)
Parameters
className (String)
The class name of the form.
classInstance (Int32)
The instance number of the form, use RanorexSpy the retrieve the instance number.
Return Value
The new form, otherwise null
Remarks
This function does not search child windows. This function performs a case-sensitive search. To search child windows, use the FormFindChild... functions. If an application cannot find a form, the function return zero.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when the class name is null.
ControlNotFoundExceptionThrown when a control with the class name cannot be found.

Assembly: RanorexNet (Module: RanorexNet) Version: 1.5.1.4524