How to: Add and Delete Actions in the File Types Editor

The File Types Editor can be used to specify the actions allowed for a file type when it is installed on a target computer. The actions that you specify here will appear as commands in the context menu when a user right-clicks a file in Windows Explorer.

NoteNote:

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To specify an action for a file type

  1. Select a File Type node in the File Types Editor.

  2. On the Action menu, click Add Action.

    A New Document Action node is added and the default name is highlighted.

  3. Type a name for the action. This is the name that will be displayed in the context menu for the file type.

    TipTip:

    To include an access key in the action name, place an ampersand (&) in front of the letter that will be used to access the command.

  4. In the Properties window, select the Verb property and type a verb. This is the name that you will use programmatically within your application to run code when the action is invoked.

Community Additions

Show: