Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

Changing a Symbol's Numeric Value


The latest version of this topic can be found at Changing a Symbol's Numeric Value.

For symbols associated with a single resource, you can use the Properties Window to change the symbol value. You can use the Resource Symbols dialog box to change the value of symbols not currently assigned to a resource. For more information, see Changing Unassigned Symbols.

To change a symbol value assigned to a single resource or object

  1. In Resource View, select the resource.

    System_CAPS_ICON_note.jpg Note

    If your project doesn't already contain an .rc file, please see Creating a New Resource Script File.

  2. In the Properties window, type the symbol name followed by an equal sign and an integer in the ID box, for example:


The new value is stored in the symbol header file the next time you save the project. Only the symbol name remains visible in the ID box; the equal sign and value are not displayed after they are validated.

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, and Walkthrough: Using Resources for Localization with ASP.NET.



Symbol Value Restrictions
Predefined Symbol IDs

© 2018 Microsoft