How to: Associate an Editor with a Resource Type

You can use the Resource Designer to edit resources for your project. Resource types supported by the Resource Designer include strings, images, icons, audio, and files. You can edit each type of resource by using a default editor associated with its file name extension. For example, the default editor for bitmap images (.bmp) might be Visual Studio Resource Editor, but the default editor for Jpeg images (.jpg) might be Windows Paint. You can open any resource file in a different editor by using the Open With command, and you can change the default editor for any resource type.

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

For information about how the Resource Designer maintains resources and designer information, see Resources Page, Project Designer.

To change the default editor for a resource type

  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. Right-click the resource that you want to edit and then click Open With.

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

  6. Click the Set as Default button.

    Note

    Setting a default editor for a file type in the Resource Designer also sets it as the default for Visual Studio. For example, if you set Notepad as the default editor for .txt files, double-clicking a .txt file in Solution Explorer will also open that file in Notepad.

See Also

Tasks

How to: Edit Resources

How to: Add or Remove Resources

How to: Add or Remove String Resources

How to: Edit String Resources

Reference

My.Resources Object

Concepts

Accessing Application Resources (Visual Basic)

Other Resources

Managing Application Resources

Resources Page, Project Designer