FormView.ShowContextMenu Method (Point, Boolean)

 

Shows a context menu that is created by MMC at the specified point.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

public void ShowContextMenu(
    Point point,
    bool onResultItem
)
public:
void ShowContextMenu(
    Point point,
    bool onResultItem
)
member ShowContextMenu : 
        point:Point *
        onResultItem:bool -> unit
Public Sub ShowContextMenu (
    point As Point,
    onResultItem As Boolean
)

Parameters

  • point
    Type: System.Drawing.Point

    The screen coordinates of the point where the context menu is to be shown.

  • onResultItem
    Type: System.Boolean

    A Boolean value that is true if the point is within the bounds of a result item, false if it is in the background region of the view. The contents of the context menu are different based on the value of this parameter.

See Also

FormView
Microsoft.ManagementConsole Namespace

Return to top