Share via


Setting Accelerator Properties

 

The latest version of this topic can be found at Setting Accelerator Properties.

In Visual C++ .NET, you can set accelerator properties in the Properties window at any time. You can also use the Accelerator editor to modify the accelerator properties in the accelerator table. Changes made using the Properties window or the Accelerator editor have the same result: edits are immediately reflected in the accelerator table.

There are three properties for each accelerator ID:

  • The Modifier property sets control key combinations for the accelerator.

    Note

    In the Properties window, this property appears as three separate Boolean properties, all of which can be controlled independently: Alt, Ctrl, and Shift.

  • The Key property sets the actual key to use as the accelerator.

  • The Type property determines whether the key is interpreted as virtual (VIRTKEY) or ASCII/ANSI.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Predefined Accelerator Keys
Resource Editors
Accelerator Editor