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