Export (0) Print
Expand All

ToolStripDropDown.Show Method (Point)

Positions the ToolStripDropDown relative to the specified screen location.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public void Show (
	Point screenLocation
)
public void Show (
	Point screenLocation
)
public function Show (
	screenLocation : Point
)
Not applicable.

Parameters

screenLocation

The horizontal and vertical location of the screen's upper-left corner, in pixels.

The following code example demonstrates how to display the ToolStripDropDown control at a fixed point.

// This method calls the ToolStripDropDown control's Show 
// method to display the ContextMenuStrip at a fixed point.
private void showAtPointButton_Click(object sender, EventArgs e)
{
    this.contextMenuStrip1.Show(23, 55);
}

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft