Nevron.UI.WinForm Namespace / NControlHelper Class / GetParentOfType Method


In This Topic
    GetParentOfType Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Shared Function GetParentOfType( _
       ByVal child As System.Windows.Forms.Control, _
       ByVal parentType As System.Type _
    ) As System.Windows.Forms.Control
    'Usage
     
    
    Dim child As System.Windows.Forms.Control
    Dim parentType As System.Type
    Dim value As System.Windows.Forms.Control
     
    value = NControlHelper.GetParentOfType(child, parentType)
    public static System.Windows.Forms.Control GetParentOfType( 
       System.Windows.Forms.Control child,
       System.Type parentType
    )

    Parameters

    child
    parentType
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also