Partager via


Finding a String

You can search for one or more strings in the string table, and use regular expressions with the Find in Files command (Edit menu) to locate all instances of strings that match a pattern.

To find a string in the string table

  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. On the Edit menu, click Find and Replace, then choose Find.

  3. In the Find What box, select a previous search string from the drop-down list or type the caption text or resource identifier of the string you want to find.

  4. Select any of the Find options.

  5. Click Find Next.

    Tip

    To use regular expressions when searching files, use the Find in Files command. Type a regular expression to match a pattern or click the button to the right of the Find What box to display a list of regular search expressions. When you select an expression from this list, it is substituted as the search text in the Find What box. If you use regular expressions, be sure the Use: Regular Expressions check box is selected.

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