RanorexRanorex Documentation
GetApplicationForm Method (process)
NamespacesRanorexHostGetApplicationForm(Process)
Gets the main Form of a process.
Declaration Syntax
C#Visual BasicVisual C++
public Form GetApplicationForm(
	Process process
)
Public Function GetApplicationForm ( _
	process As Process _
) As Form
public:
Form^ GetApplicationForm(
	Process^ process
)
Parameters
process (Process)
The process to get the main Form from.
Return Value
A Form belonging to the specified Process.
Remarks
If more Form instances are found for the process, the last Form found is returned (to avoid popups).
Exceptions
ExceptionCondition
ArgumentNullExceptionIf process is null.
RanorexExceptionIf getting the process Id from process fails.
ElementNotFoundExceptionIf no Form belonging to the specified process is found within the DefaultSearchTimeout.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)