Compartilhar via


Como: Associar um Editor com um tipo de recurso

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 Gerenciando Recursos de Aplicativo.

For information about how the Resource Designer maintains resources and designer information, see Página de recursos, Designer de projeto.

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.

    ObservaçãoObservação

    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.

Consulte também

Tarefas

Como: Editar recursos

Como: Adicionar ou remover recursos

Como: Adicionar ou remover recursos de seqüência de caracteres

Como: Editar recursos de seqüência de caracteres

Referência

Objeto My.Resources (Visual Basic)

Página de recursos, Designer de projeto

Conceitos

Acessando recursos de aplicativo (Visual Basic)

Outros recursos

Gerenciando Recursos de Aplicativo