Compartilhar via


Adding Formatting or Special Characters to a String

To add formatting or special characters to a string

  1. Open the string table by double-clicking its icon in Resource View.

    Note

    If your project doesn't already contain an .rc file, please see Creating a New Resource Script File.

  2. Select the string you want to modify.

  3. In the Properties Window, add any of the standard escape sequences listed below to the text in the Caption box, and press ENTER.

    To get this

    Type this

    New line

    \n

    Carriage return

    \r

    Tab

    \t

    Backslash (\)

    \\

    ASCII character

    \ddd (octal notation)

    Alert (bell)

    \a

Note

The String editor does not support the full set of escaped ASCI characters. You can only use those listed above.

For information on adding resources to managed projects (those that target the common language runtime), please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Reference

String Editor

Strings

About Strings