Partilhar via


Como: Editar recursos

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.

ObservaçãoObservação

The procedures for editing string resources differ from the other resource types. For more information, see Como: Editar recursos de seqüência de caracteres.

You edit each type of resource by using an editor associated with its file name 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 by using the Open With command, and you can change the default editor for any resource type. For more information, see Como: Associar um Editor com um tipo de recurso.

For information about how the Resource Designer generates strongly-typed resources, see Gerenciando Recursos de Aplicativo.

To edit a resource by 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 by 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 want to edit, right-click it, 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.

    The resource file is opened in the selected editor.

    ObservaçãoObservação

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

Consulte também

Tarefas

Como: Editar recursos de seqüência de caracteres

Como: Adicionar ou remover recursos

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

Como: Associar um Editor com um tipo de recurso

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