Information
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.

How to: Edit Resources 

You can use the Resource Designer to add or edit resources for your project. Resource types supported by the Resource Designer include strings, images, icons, audio, and files. For information on how the Resource Designer maintains resources and designer information, see Resources Page, Project Designer.

The Resource Designer is language-neutral and supports projects in all of the Visual Studio languages. For Visual C# and Visual J#, the Resource Designer generates strongly typed resources into the project folder's default namespace. For Visual Basic, the Resource Designer generates strongly typed resources into the My.Resources namespace. For information about accessing resources through the My.Resources object, see Accessing Application Resources.

NoteNote

The procedures for editing string resources differ from the other resource types. For more information, see How to: Edit String Resources.

Each type of resource is edited using an editor associated with its file extension. For example, the default editor for bitmap images (.bmp) might be the Visual Studio Bitmap Editor, but the default editor for Jpeg images (.jpg) could be Windows Paint. You can open any resource file in a different editor using the Open With command, and you can change the default editor for any resource type. For more information, see How to: Associate an Editor with a Resource Type.

To edit a resource using the default editor

  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 select the type of resource that you want to edit.

  4. Double-click the resource to open the default editor for that resource type.

To edit a resource using a different editor

  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 select the type of resource that you want to edit.

  4. Select the resource that you wish to edit; right-click it, and choose Open With from the context menu.

  5. In the Open With dialog box, choose an editor from the Choose the program you want to use to open this file: list.

    The resource file is opened in the selected editor.

    NoteNote

    The editor must be capable of editing the selected resource type; for example, you cannot edit a bitmap file in a text editor.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft