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)


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


  • 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

Microsoft.ManagementConsole Namespace

Return to top