GetTopLevelForm Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetTopLevelForm() method searches for the form that contains the specified control. Once the form is found, the method returns the form as a control.
'Declaration
Public Shared Function GetTopLevelForm( _
ByVal factControl As Control _
) As Control
public static Control GetTopLevelForm(
Control factControl
)
Parameters
- factControl
- Required. Holds a reference to the control for which the top level form should be found.
Return Value
Returns the top level form as a control.