ComponentOne Menus and Toolbars for WinForms
C1.Win.C1Command.4.8 Assembly / C1.Win.C1Command Namespace / C1CommandHolder Class / CommandHolderByForm Method
Form whose command holder is returned.

In This Topic
    CommandHolderByForm Method (C1CommandHolder)
    In This Topic
    Returns the command holder for the specified form, if it exists.
    Syntax
    'Declaration
     
    Public Shared Function CommandHolderByForm( _
       ByVal form As System.Windows.Forms.Control _
    ) As C1CommandHolder
    public static C1CommandHolder CommandHolderByForm( 
       System.Windows.Forms.Control form
    )

    Parameters

    form
    Form whose command holder is returned.

    Return Value

    The command holder for the specified form, or null.
    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