 | HostGetApplicationForm Method (Process, Duration) |
Gets the main
Form of a process.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic Form GetApplicationForm(
Process process,
Duration timeout
)
Public Function GetApplicationForm (
process As Process,
timeout As Duration
) As Form
Parameters
- process
- Type: System.DiagnosticsProcess
The process to get the main Form from. - timeout
- Type: RanorexDuration
The time to keep searching for a Form instance
belonging to the process.
Return Value
Type:
FormA
Form belonging to the specified
Process.
Exceptions
RemarksIf more
Form instances are found for the process, the last
Form found is returned (to avoid popups).
See Also