先附上代码
namespace Create_PopUp_ToolbarMenu_Sample
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// 调用了 ArcGIS Snippet
#region"Create PopUp ToolbarMenu"
// ArcGIS Snippet Title:
// Create PopUp ToolbarMenu
//
// Long Description:
// Stub code for creating a popup or context menu.
//
// Add the following references to the project:
// ESRI.ArcGIS.Controls
// ESRI.ArcGIS.System
// ESRI.ArcGIS.SystemUI
//
// Intended ArcGIS Products for this snippet:
// ArcGIS Engine
//
// Applicable ArcGIS Product Versions:
// 9.2
// 9.3
// 9.3.1
// 10.0
//
// Required ArcGIS Extensions:
// (NONE)
//
// Notes:
// This snippet is intended to be inserted inside a Method.
// It is not int