How to: Edit String Resources

You can use the Resource Designer to edit string resources for your project. The procedures for editing string resources differ from those of other resource types. For information about how to manage non-string resource types, see How to: Edit Resources.

You can cut, copy, and paste string resources between rows in the strings editor; however, you cannot paste individual values or comments. When you copy and paste strings from an external source, the Name, Value, and Comment fields must be separated by tabs. If they are not, the whole string will be added to the Name column.

For information about how the Resource Designer generates strongly-typed resources, see Managing Application Resources.

To edit a string resource

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Resources tab.

  3. On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and make sure that it is set to Strings (which is the default). A settings grid will appear, displaying the strings maintained by that instance of the Resource Designer.

  4. Select the cell in the string table that you want to edit and begin typing.

To copy string resources

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Resources tab.

  3. On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and make sure that it is set to Strings (which is the default). A settings grid will appear, displaying the strings maintained in Resources.resx.

  4. Select the row that contains the string resource to copy by clicking in the gray row header.

  5. On the Edit menu, click Copy.

  6. On the Edit menu, click Paste.

    A copy of the string resource will be added as a new row in the string table.

See Also

Tasks

How to: Add or Remove Resources

How to: Add or Remove String Resources

How to: Edit Resources

How to: Associate an Editor with a Resource Type

Concepts

Accessing Application Resources

Reference

My.Resources Object

Resources Page, Project Designer

Other Resources

Managing Application Resources