'Add
menu command items (the command-ID numbers 1000 and 1001 are 'arbitrary; EPDM does not use them;
instead, EPDM only passes them to the 'implementation of OnCmd
to know which command was selected) poCmdMgr.AddCmd(1000, "First command",
EdmMenuFlags.EdmMenu_Nothing, "This is the first command",
"First command", 0, 99) poCmdMgr.AddCmd(1001, "Second command",
EdmMenuFlags.EdmMenu_MustHaveSelection, "This is the second
command", "Second command", 1, 99)

The first menu command appears in the context-sensitive
and Tools menus of vault files in Windows
Explorer. The second menu command
appears in the context-sensitive menus only when one or more files or folders are selected.Right-click a file in
the vault and select Second
command. A dialog similar to the following is displayed:

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

*Email:

Subject:

Feedback on Help Topics

Page:

Creating Menu Commands (VB.NET)

*Comment:

*

I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.