ComponentOne Menus and Toolbars for WinForms
C1.Win.C1Command.4.5.2 Assembly / C1.Win.C1Command Namespace / C1CommandHolder Class / SetC1ContextMenu Method
The control or NotifyIcon for which to set the context menu.
The context menu to attach to the control.

In This Topic
    SetC1ContextMenu Method (C1CommandHolder)
    In This Topic
    Sets a context menu contained within the C1CommandHolder.
    Syntax
    'Declaration
     
    Public Sub SetC1ContextMenu( _
       ByVal control As System.Object, _
       ByVal value As C1ContextMenu _
    ) 
    public void SetC1ContextMenu( 
       System.object control,
       C1ContextMenu value
    )

    Parameters

    control
    The control or NotifyIcon for which to set the context menu.
    value
    The context menu to attach to the control.
    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