Click or drag to resize

ShellBrowserShowContextMenu(Point, ContextMenuStrip) Method

Shows the shell context menu for the files contained in MultiObjects or the active object, adding the context menu entries contained in pContextMenuStrip

Namespace: Jam.Shell
Assembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntax
public string ShowContextMenu(
	Point pPosition,
	ContextMenuStrip pContextMenuStrip
)

Parameters

pPosition  Point
Position on the screen at which the context menu should appear.
pContextMenuStrip  ContextMenuStrip
ContextMenuStrip that should be merged with the shell context menu, or (ContextMenuStrip)null if there is no ContextMenuStrip to merge.

Return Value

String
The shell command that was executed, an empty string if no shell command was executed.
Example
Showing the context menu for the Windows folder and adding additional menu items from the passed ContextMenuStrip
C#
using (ShellBrowser lShellBrowser = new ShellBrowser(@"C:\Windows"))
{
    lShellBrowser.ShowContextMenu(new System.Drawing.Point(100, 100), lAdditionalMenuItems);
}
See Also