This documentation is archived and is not being maintained.

Menu and Toolbar Samples

Visual Studio 2005
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The following table includes a list of samples in the Visual Studio SDK that demonstrate command functionality.

In This Section

Reference.MenuAndCommands Sample (C#)

Demonstrates in Visual C# four scenarios related to commands on menus and toolbars.

  • Creating simple commands.

  • Putting commands inside existing command groups.

  • Changing command state, for example its text or visibility, at runtime.

  • Adding keyboard shortcuts to commands.

Reference.MenuAndCommands Sample (C++)

Demonstrates in Visual C++ four scenarios related to commands on menus and toolbars.

  • Creating simple commands.

  • Putting commands inside existing command groups.

  • Changing command state, for example its text or visibility, at runtime.

  • Adding keyboard shortcuts to commands.

DynamicMenu Sample

Demonstrates how to add and remove menu items from the Visual Studio integrated development environment (IDE) by using the managed package framework (MPF).

Related Sections

Menus and Toolbars

Explains how to create a UI that includes menus, toolbars, and command combo boxes.

Show: