Adding or Deleting a String
You can quickly insert new entries into the string table using the String editor. New strings are placed at the end of the table and are given the next available identifier. You can then edit the ID, Value, or Caption properties in the Properties window as needed.
The String editor makes sure you do not use an ID that's already in use. If you select an ID already in use, the String editor will notify you and then assign a generic unique ID, for example IDS_STRING58113.
To add a string table entry
Open the string table by double-clicking its icon in Resource View.
Note
If your project doesn't already contain an .rc file, please see Creating a New Resource Script File.
Right-click within the string table and choose New String from the shortcut menu.
In the String editor, select an ID from the ID drop-down list or type an ID directly in place.
Edit the Value, if necessary.
Type an entry for the Caption.
Note
Null strings are not allowed in Windows string tables. If you create an entry in the string table that is a null string, you will receive a message asking you to "Please enter a string for this table entry."
To delete a string table entry
Select the entry you want to delete.
On the Edit menu, click Delete.
- or -
- Right-click the string you want to delete and choose Delete from the shortcut menu.
- or -
- Press the DELETE key.
For information on adding resources to managed projects (those that target the common language runtime), 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: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.
Requirements
Win32